feat(pdf): R4.6 app export on the core's session: export.ts drives ExportSession (rasters one by one, warnings in the engine's order, abort on unmount), labels moved to the app, EditorRoute downloads the Blob of the parts; suites read the file's content streams (pdfRead helper), app-path bytes = R4 digests, hex strings upper-case as pdf-lib
This commit is contained in:
1 parent
9e688b6801
commit
d492bf7112
29 files changed
+507
-131
No files matched your search
@@ -230,11 +230,11 @@ pub fn name(text: &str) -> String {
|
||||
out
|
||||
}
|
||||
|
||||
/// `PDFHexString.fromText`: UTF-16BE with a BOM, lowercase hex.
|
||||
/// `PDFHexString.fromText`: UTF-16BE with a BOM, upper-case hex as pdf-lib printed it.
|
||||
pub fn hex_text(text: &str) -> String {
|
||||
let mut out = String::from("<feff");
|
||||
let mut out = String::from("<FEFF");
|
||||
for unit in text.encode_utf16() {
|
||||
out.push_str(&format!("{unit:04x}"));
|
||||
out.push_str(&format!("{unit:04X}"));
|
||||
}
|
||||
out.push('>');
|
||||
out
|
||||
|
||||
Reference in new issue
Block a user