summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-20Add system fallback font callback.Tor Andersson
2017-01-20Add separate TOFU_NOTO define to skip Noto fonts (but not Charis SIL).Tor Andersson
2017-01-19Use static assignments in Makerules.Tor Andersson
2017-01-18Detect MSYS2 as a MinGW build in Makerules.Tor Andersson
2017-01-17java: Add gdb target for debugging JNI crashes.Sebastian Rasmussen
2017-01-17java: JNI code needs generated header files from mupdf library.Sebastian Rasmussen
2017-01-17java: Simplify loadLibrary call.Tor Andersson
Always look in order for the following libraries: mupdf_java64 mupdf_java32 mupdf_java
2017-01-17java: Add text searching.Tor Andersson
2017-01-17Only use openssl 1.0.1t and earlier.Tor Andersson
Later versions are incompatible with how we call it.
2017-01-17Automatically turn on PACIFY_VALGRIND for debug builds.Tor Andersson
Add 'build=valgrind' configuration.
2017-01-17java: Allow custom compiler flags.Sebastian Rasmussen
2017-01-17Fix typos.Sebastian Rasmussen
2017-01-17Update MuJS.Tor Andersson
2017-01-17Fix 697476: Rename header files.Tor Andersson
Xcode has an idiotic default configuration where it gets confused by include search paths and file names in projects, so that it will load our "mupdf/fitz/math.h" instead of the system <math.h>. Work around this by renaming header files that have the same base name as a system header (even though they live in a subdirectory, and should never be available directly on the compiler's include path).
2017-01-17MSVC: Fix libmupf openssl configurations include paths.Robin Watts
2017-01-17MSVC: Remove libluratech non commercial configurationsRobin Watts
2017-01-17MSVC: Fix 64bit builds of libmuthreadsRobin Watts
2017-01-17Remove preprocessor defines from vcproj.Tor Andersson
Keeping them up to date is difficult and prone to errors, so we move setting the USE_OUTPUT_DEBUG_STRING and FZ_LARGEFILE flags to the source instead of relying on project file definitions.
2017-01-17x11: Add -b flag to x11 viewer.Tor Andersson
2017-01-17Don't throw from libjpeg callbacks!Tor Andersson
2017-01-17pdf: Rename FZ_ERROR_OOM to FZ_ERROR_MEMORY.Tor Andersson
2017-01-17pdf: Convert non-printable keywords into PDF_TOK_ERROR.Tor Andersson
All known keywords are printable. Converting non-printable keywords into error tokens means we don't try to print garbage when showing error messages about unknown tokens.
2017-01-17pdf: Ignore a certain number of syntax errors before bailing.Tor Andersson
2017-01-17pdf: Minor interpreter cleanups.Tor Andersson
2017-01-17java: Call dispose() instead of System.exit() when closing the window.Tor Andersson
2017-01-17Add value destructor callback to fz_hash_table.Tor Andersson
This allows us to prune the iteration functions. We also remove a few other unused functions.
2017-01-17Use relative URLs for git submodules.Tor Andersson
Also flatten the git repository namespace, so that we can host a complete mirror of all repositories and submodules on github.
2017-01-09Remove platform/android/example directory.Tor Andersson
The Android example viewer has been moved to its own git repository.
2017-01-09Remove platform/android/viewer directory.Tor Andersson
The Android viewer has been moved to its own git repository.
2017-01-09Remove platform/ios directory.Tor Andersson
The iOS viewer has been moved to its own git repository.
2017-01-09Be consistent in use of DEBUG/NDEBUG macros.Tor Andersson
Only use NDEBUG as it's the one that most environments already set, so is likely to lead to the least amount of confusion if compiling with a custom build system.
2017-01-09java: Clean up and simplify example viewer.Tor Andersson
Don't pull in swing classes for simple desktop AWT viewer. Use inner classes for helper classes. Add list of zoom levels. Add table of content list. Make page canvas flicker free.
2017-01-09java: Handle outlines with duff links.Tor Andersson
2017-01-09java: Fix encoding problems when turning strings into java strings.Tor Andersson
Most strings coming out of various MuPDF functions are already decoded to utf-8; so manually decoding from PDFDocEncoding or UCS-2 is actually harmful rather than helpful.
2017-01-09java: Use default build type when compiling.Sebastian Rasmussen
The default choice is overridden in the same way as for a normal compile.
2017-01-09java: Automatically determine openjdk path.Sebastian Rasmussen
Also allow for overriding the decision by setting JAVA_HOME.
2017-01-09epub: Reset old line breaks before choosing new ones.Tor Andersson
This was causing problems when laying out a document multiple times, where old line breaks taken would be sticky.
2017-01-09Add missing pdf_close_processor calls.Tor Andersson
2017-01-09Remove some dead code.Tor Andersson
2017-01-09Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.Tor Andersson
2017-01-09Fix potential buffer overrun when decoding UTF-16 in XML parser.Tor Andersson
2017-01-09Add fz_terminate_buffer function.Tor Andersson
Non-destructively zero terminate a fz_buffer for use as a C string.
2017-01-09Bug 697466: Fix banded PKM/PBM output.Robin Watts
When I regularised the band writing interface, I broke PKM and PBM in the banded case. Fixed here.
2017-01-06Undo accidental reversion of jbig2dec submodule.Robin Watts
2017-01-06Fix /dev/null slowdown.Robin Watts
In commit 80308eae9964e71b66a18f3de6ebcd2ebf0d306b ("Regularize band writer interface"), I inadvertently slowed down outputting to /dev/null. Fixed here. Also take the opportunity to speed ppm/pnm files writing in general if we don't need to collate.
2017-01-06Fix MSVC breakage.Robin Watts
2017-01-02Fix leak of image mask.Sebastian Rasmussen
Commit 508db7953f094f58e9a99172c7803c3e67afe308 assumes that callers free the supplied image mask. In one location this was not the case.
2016-12-30Avoid using .incbin when compiling for Android.Sebastian Rasmussen
The clang 3.8 used in Android NDK r13 supports .incbin, but doesn't take any -I arguments into account when looking for the file to be included. In Android we depend on -I to locate the font files to be included. For ARM-based targets this works becased Android NDK supplies -fno-integrated-as to cause the compiler to use an external assembler that searches the -I arguments to locate the file to include. For x86-based targets -fno-integrated-as is not supplied so the files cannot be located and thus the compilation fails. To avoid this problem and be as robust as possible let's disable the .incbin directive for Android for all architectures and compilers.
2016-12-27Update jbig2dec.Tor Andersson
2016-12-27Bug 697455: Make JPX support optional via configuration flag.Tor Andersson
Set FZ_ENABLE_JPX=0 in XCFLAGS or include/mupdf/fitz/config.h to disable support for JPX at compile time. Be aware that this may break support for PDF 1.5 and later files that need JPEG2000 support.