summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-28Update to zlib 1.2.11.Sebastian Rasmussen
This fixes a compilation warning when compiling for Android.
2017-04-28jni: Include "mupdf/ucdn.h" explicitly.Sebastian Rasmussen
This really should have been part of commit 5030ba7ebf7b3706ac065deef750d647570525b3 which changed most places where ucdn.h is used.
2017-04-28Add support for manipulating PDF annotation vertices.Sebastian Rasmussen
2017-04-27Break line at public identifiers, making them easily grepable.Sebastian Rasmussen
2017-04-27Avoid typecasting function pointers in subclasses.Tor Andersson
Do the typecasting in the functions instead, reducing the risk of function prototype mismatches.
2017-04-27Typedef function pointers consistently.Tor Andersson
2017-04-27Remove debug printing code.Tor Andersson
It's not used, so prone to bit rot. Better to purge it.
2017-04-27Make CSS rule debug printing functions static.Tor Andersson
2017-04-27Rewrite HTML layout debug printing.Tor Andersson
2017-04-27Clean up store debug printing.Tor Andersson
Replace fz_print_hash with fz_hash_for_each iterator. Use string formatting callback.
2017-04-27Move fz_outline and pdf_xref debug printing to pdfshow.cTor Andersson
That's where it's actually being used.
2017-04-27Use FZ_SEEK_SET macros for fz_seek.Tor Andersson
Don't depend on stdio.h for our own I/O functions.
2017-04-27Ensure we can compile as -pedantic -std=c99.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-27Remove fz_function abstract structure.Tor Andersson
There is only one implementation, so don't bother with the abstraction. Just use pdf_function directly.
2017-04-27Remove unused fz_function debug printing.Tor Andersson
2017-04-27Use feature defines in tools.Tor Andersson
If DISABLE_MUTHREADS is set, don't include the thread helper library. If FZ_ENABLE_PDF is 0, don't include mupdf/pdf.h.
2017-04-27Use fz_snprintf.Tor Andersson
2017-04-27Remove public SVG header.Tor Andersson
Move the two SVG utility functions into fitz/util.h
2017-04-27Make HTML header private.Tor Andersson
2017-04-27Include "mupdf/ucdn.h" explicitly.Tor Andersson
2017-04-27Use namespace prefix for bidi defines.Tor Andersson
2017-04-27Use FZ_PATH_MAX.Tor Andersson
PATH_MAX is Linux specific.
2017-04-27Use namespace for AES crypto code.Tor Andersson
2017-04-27Rename FMT_zu to FZ_FMT_zu.Tor Andersson
Don't use FMT_zu macro for fz_throw/fz_warn, since we can portably handle '%zu' in our own printf formatting.
2017-04-27memento: Don't include unnecessary headers.Tor Andersson
2017-04-26Tweak gel bbox calculation.Robin Watts
2017-04-25Fix 697123: Handle nesting of block-boxes deep inside inline-boxes.Tor Andersson
When we climb up the box tree to create a new block box for block-level elements that are deep inside inline-level elements, we should propagate this to the caller so it can also climb up. Otherwise other child elements in the inline-level element will be inserted before the block box that was created for the content that was shunted up the tree.
2017-04-21js: Extend PDF app object with a few properties.Sebastian Rasmussen
2017-04-20Remove needless -Igenerated flags.Tor Andersson
Also remove -I../../ucdn from the visual studio project.
2017-04-20Split long lists onto multiple lines.Tor Andersson
2017-04-20The default color of ink annotation is transparent.Sebastian Rasmussen
Previously the default color of ink annotations was red, but according to the pdf specification the default color should be colorless transparent if no color is given.
2017-04-20jni: Add constructor to duplicate existing matrix.Sebastian Rasmussen
2017-04-20jni: Pass independent character matrices when walking through text.Sebastian Rasmussen
This avoids altering the matrices previously given to the Text walker.
2017-04-20jni: Fix typo in native identifier.Sebastian Rasmussen
2017-04-20jni: to_Annotation() may fz_throw(), make it safe.Sebastian Rasmussen
Previously to_Annotation() would fz_throw() upon errors, but the code calling it couldn't handle that. Create to_Annotation_safe() that does not throw and remove the now unused to_Annotation().
2017-04-20jni: PDFAnnotation and PDFPage additions.Sebastian Rasmussen
2017-04-20jni: Implement missing interfaces.Sebastian Rasmussen
2017-04-20jni: Check that JNI enums match those in the library.Sebastian Rasmussen
2017-04-20Add annotation interfaces for open state/icon name/line endings.Sebastian Rasmussen
2017-04-20Improve PDF annotation error handling.Sebastian Rasmussen
2017-04-20js: Push annotation error handling down to library.Sebastian Rasmussen
This makes is possible for JNI code to depend on the library for error handling.
2017-04-20js: Add set/get of interior color of annotations.Sebastian Rasmussen
2017-04-20jni: Remove exposed device hints.Sebastian Rasmussen
2017-04-18Use splay trees for loading/merging cmaps.Robin Watts
This allows for overlaps, merges adjacent (mergeable) ranges and gets us properly searchable results. This causes 1 diff in the test suites (Bug694353.pdf), which is due to the fallback font not having a hypen present at UCS 0x2010.
2017-04-18jni: Propagate exception message, do not override it.Sebastian Rasmussen
2017-04-18jni: Clear java exception when rethrow via fz_throw().Sebastian Rasmussen
Previously when a java exception was pending CallObjectMethod() was called. This is not permitted and so the exception must be cleared before this function is called. Secondly if the method called by CallObjectMethod() throws an exception this exception was left pending when fz_throw() for unknown java errors was called. Later on jni_rethrow() would be called which in turn called ThrowNew(). This is not permitted either, so the pending exception must be cleared if caused by the call to CallObjectMethod(). Because fz_throw_java() always ends with a fz_throw() it is safe to assume that the pre-existing exception (or the one caused by CallObjectMethod()) will always be converted into a fz_throw(), which in turn will be converted back to a java exception since all calls to fz_throw_java() are enclosed in fz_try() where fz_catch() ends with calling jni_rethrow().
2017-04-18jni: NewStringUTF() may throw exception, handle this.Sebastian Rasmussen
When NewStringUTF() throws an exception NewObject() may not be called. Change to code to avoid this.
2017-04-18jni: Use consistent naming in conversion functions.Sebastian Rasmussen
2017-04-18jni: Fix typo in identifier.Sebastian Rasmussen