summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-12-13Fix 698785: Catch malformed numbers in PDF lexical scanner.Tor Andersson
Return error tokens when parsing numbers with trailing garbage rather than ignoring the extra characters. Also handle error tokens more gracefully in array and dictionary parsing. Treat error tokens as the 'null' keyword and continue parsing.
2017-12-13Fix 698787: avoid using "system()" to copy files.Tor Andersson
2017-12-13Put extra apps in separate (non-default) makefile build target.Tor Andersson
2017-12-13Add 'clean' option to pdfclean to clean (but not sanitize) content streams.Tor Andersson
This goes well with the 'mutool clean -d' decompression option to debug content streams, without doing the sanitize optimization pass.
2017-12-13gl: Tell glut to return from main loop when the window closes.Tor Andersson
This allows us to clean up memory so we can check for memory leaks. Also fix one memory leak.
2017-12-13Import FreeGLUT fixes for clipboard and unicode input.Tor Andersson
Fixes issues with dead keys in unicode input.
2017-12-08Fix SEGV in redaction code due to TJ with no chars.Robin Watts
If the first TJ we meet in a file has an adjustment, but no chars, then we end up calling 'adjustment' without ever having set fontdesc. This causes a crash. Fix it here.
2017-12-06Ensure that our ICC base spaces have colorant names.Robin Watts
2017-12-06Update fz_convert_separation_colors to cope with unnamed separations.Robin Watts
Well, at least not to crash.
2017-12-06Bug 698801: Always copy background in when clipping an imagemask.Robin Watts
Don't attempt to rely on alpha, as it is incompatible with the way we clip through the mask at the end.
2017-11-23Bump version number to 1.12.0.Tor Andersson
2017-11-23Update CHANGES.Tor Andersson
2017-11-23Allow RGB based proofing profile and output intentMichael Vrhel
Also do not do the extra group push if the destination pixmap is in the proper color space and has all the required sep support.
2017-11-23Workaround freetype synthesizing unicode cmaps.Tor Andersson
2017-11-23Make time stamps 64-bit integers.Tor Andersson
Future proof the API for the Year 2038 problem.
2017-11-22Remove unused annotation function.Tor Andersson
2017-11-22jni/js: Add support for annotation modification dates.Sebastian Rasmussen
2017-11-22jni/js: Use correct text encoding in annotation author and contents.Fred Ross-Perry
Also clarify that a copy of author/contents is returned, and that the caller must free them.
2017-11-22jni/js: Add interfaces for creating UTF-16BE and PDF byte strings.Sebastian Rasmussen
This mirrors the existing PDFObject.asByteString().
2017-11-22jni: Remove unnecessary PDFObject.asByteName().Sebastian Rasmussen
2017-11-22Add pdf_new_text_string utility function.Tor Andersson
Create a PDF 'text string' type string from a UTF-8 input string. If the input is plain ASCII, keep it as is, otherwise re-encode it as UTF-16BE.
2017-11-22jni: Make sure to dirty annotation whenever it changes.Fred Ross-Perry
2017-11-22jni: Silence warning by casting boolean to integer.Sebastian Rasmussen
2017-11-22jni: Fix bugs in StructuredText_getBlocks().Fred Ross-Perry
When iterating through blocks, make sure to include text blocks. After building the char array for a given line, be sure to add it to the line object.
2017-11-22jni: Put destination coordinates into Outline object.Fred Ross-Perry
2017-11-22jni: Free quadpoints and vertices upon JNI error.Sebastian Rasmussen
2017-11-22jni: Only keep the reference when the java constructor succeeds.Sebastian Rasmussen
2017-11-22jni: Check for exception after allocating objects.Sebastian Rasmussen
2017-11-22jni: Initialize Context before using any MuPDF classes.Sebastian Rasmussen
2017-11-22jni: Return correct quadpoints coordinates.Sebastian Rasmussen
2017-11-22jni: Return correct inklist coordinates.Sebastian Rasmussen
2017-11-22jni: Prevent memory leak by freeing upon error.Sebastian Rasmussen
Previously the counts and points arrays would leak if GetFloatArrayRegion() threw an exception.
2017-11-22jni: Clarify initialization order in Context.Sebastian Rasmussen
Previously the initialization order of init() and the field inited was not obvious. Move the static block as far up as possible but make sure that inited is initialized before that. Also add a comment explaining why.
2017-11-22js: Return undef when not finding metadata.Sebastian Rasmussen
Previously when metadata was not found mupdf still tried to return a string to the caller, but the string was uninitialized.
2017-11-22Add usage for missing options to pdf-write.Sebastian Rasmussen
2017-11-22Prefer using fz_snprintf over snprintf.Sebastian Rasmussen
This way the MuPDF library itself only uses fz_snprintf for consistent formatting.
2017-11-22Use custom allocator everywhere zlib is used.Sebastian Rasmussen
2017-11-22Warn on irretrievable glyph name.Sebastian Rasmussen
2017-11-22Update freeglut and change freeglut build output directory.Tor Andersson
It should be in "build/$release/thirdparty/freeglut".
2017-11-22Skip unnecessary newline when writing ASCII streams.Tor Andersson
2017-11-17Fix build if lcms2 is not present.Tor Andersson
We NEED lcms2art (the artifex branch) and cannot build with stock lcms2. Disable ICC support if the lcms2 thirdparty library is not present.
2017-11-17Purge remnants of GLFW.Tor Andersson
2017-11-15Bug 698740: Avoid NULL fz_default_colorspaces structures.Robin Watts
Remove code left over from development that is now wrong. We should have default colorspaces in the system, even in NON_ICC builds.
2017-11-15Bug 698745: Avoid broken colorspaces in NO_ICC builds.Robin Watts
If we attempt to make an icc colorspace in a NO_ICC build, throw an exception. This stops us ending up with 'UNKNOWN' colorspaces in the system.
2017-11-14Ensure that after_text functions get ctm.Robin Watts
Also wrap their contents in q/Q, so they can't screw up the rest of the stream.
2017-11-14Ensure filter inits the Trm values on a BT.Robin Watts
Otherwise we can get empty bbox values.
2017-11-14Rejig filter internals slightly.Robin Watts
Hold 2 instances of a structure, rather than a structure with 2 of each fields in it. Also, correct the logic for when we send color changes.
2017-11-13Update docs for Android SDK.Tor Andersson
2017-11-13docs: Put logo in title bar.Tor Andersson
2017-11-13docs: Don't shout in the navigation bar.Tor Andersson