summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-04Drop FZ_PATH_MAX macro.Tor Andersson
Define PATH_MAX in the few files that use it, should it be missing.
2017-05-04Fix macOS build.Tor Andersson
2017-05-03Fix windows build: Don't set _LARGEFILE64_SOURCE on windowsRobin Watts
This causes zlib to look for a header we don't have.
2017-05-03Fix windows builds: windows doesn't have sys/time.hRobin Watts
A nicer fix wouldn't require this #ifdeffery everywhere. Maybe later.
2017-05-03Fix windows builds: No S_ISDIR macro.Robin Watts
2017-05-03Fix MSVC project; function.c has been removed.Robin Watts
2017-05-02tiff: Fix typo in validation of tiles images.Sebastian Rasmussen
2017-05-02tiff: Scale Lab components to suit colorspace.Sebastian Rasmussen
TIFF already provides the a/b components prescaled. Previously the colorspace color conversion process scaled them again, causing out of range behaviour.
2017-04-30tiff: Set k>0 for CCITT fax group 3 1D/2D compression.Sebastian Rasmussen
Previously, if a TIFF file was encoded using CCITT fax group 3 compression and mixing 1D and 2D codes, the fax decoder was not instructed to parse the 1D/2D indication bit after EOL. This caused later issues when parsing the succeeding 1D/2D code, e.g. resulting in the decoder encountering a negative 1D code and returning with an error. Setting k>0 means the 1D/2D indication bit is parsed. The CCITT fax group 3 specification recommends setting k based on the vertical resolution. MuPDF's fax decoder depends only on if k is <0, 0 or >0, not its value (as recommended by the PDF specification). Therefore it is not necessary to use the vertical resolution to determine a particular value for k.
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