-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactored the string printing: it got pretty convoluted before …
…but has now been separated into three different routines, one for each `flags` mode. `mutool multipurp` now has `-m 0,1,2` mode arg, which can pick the print mode. `-m1` works best for C# receivers as their JSON deserializer does not like arbitrary changes in format (`-m 2`: HEX+MASSAGED struct instead of STRING when things go bad) -- the C# receiver also doesn't like hex bytes in its JSON string inputs. All of this is resolved by modes 0 and 1, which replace offending codepoints/characters with their hexadecimal value. Added PDF tests to check proper handling and stability of the tools. (Several tests fail, but that's due to us feeding all sorts of rotten PDFs into the toolset, mostly. Plus possibly a few lingering bugs. *To be investigated.* `mutool multipurp` now also lists *attached files* inside a PDF: this feature has been added after careful analysis of a couple of live PDFs which have this feature (visible in Foxit Reader, where one could click on the embedded PDFs, contained inside the container PDF)
- Loading branch information
1 parent
925af12
commit 86e1282
Showing
5 changed files
with
1,264 additions
and
784 deletions.
There are no files selected for viewing
Submodule MuPDF
updated
29 files
+10 −0 | include/mupdf/fitz/buffer.h | |
+2 −1 | include/mupdf/fitz/string-util.h | |
+10 −0 | include/mupdf/pdf/name-table.h | |
+6 −0 | include/mupdf/pdf/object.h | |
+5 −5 | platform/gl/gl-font.c | |
+2 −2 | platform/gl/gl-input.c | |
+1 −0 | platform/win32/libmupdf.def | |
+1 −1 | platform/x11/win_main.c | |
+1 −1 | source/fitz/printf.c | |
+2 −2 | source/fitz/stext-search.c | |
+21 −2 | source/fitz/string.c | |
+1 −1 | source/fitz/tessocr.cpp | |
+2 −2 | source/fitz/text.c | |
+1 −1 | source/fitz/time.c | |
+1 −1 | source/fitz/xml.c | |
+1 −1 | source/helpers/dir.c | |
+4 −4 | source/html/html-layout.c | |
+3 −3 | source/html/html-parse.c | |
+6 −6 | source/pdf/pdf-annot.c | |
+50 −42 | source/pdf/pdf-appearance.c | |
+1 −1 | source/pdf/pdf-crypt.c | |
+1 −1 | source/pdf/pdf-link.c | |
+720 −191 | source/pdf/pdf-object.c | |
+6 −6 | source/pdf/pdf-op-buffer.c | |
+1 −1 | source/pdf/pdf-op-filter.c | |
+6 −6 | source/pdf/pdf-parse.c | |
+54 −20 | source/tools/pdfmultipurp.c | |
+77 −63 | source/tools/pdfshow.c | |
+1 −1 | source/xps/xps-glyphs.c |
Oops, something went wrong.