summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-06x11: Fix segfault when creating presentation transitions.Tor Andersson
2016-07-06Start slimming pdf_page.Tor Andersson
We want to turn pdf_page into a thin wrapper around a pdf_obj, so that any updates to the underlying PDF objects will be reflected without having to reload the pdf_page.
2016-07-06Add fitz to pdf downcasting functions for pages and annotations.Tor Andersson
2016-07-06Update luratech jbig2 function prototype with int to size_t change.Tor Andersson
2016-07-06Add annotations to murun.Tor Andersson
2016-07-06Remove premature optimization: don't bother to resolve page objects.Tor Andersson
2016-07-06Fix garbage collection and page grafting for indirect reference chains.Tor Andersson
The mark & sweep pass of garbage collection, and resolving indirect objects when grafting objects was following the full chain of indirect references. In the unusual case where a numbered object is itself only an indirect reference to another object, this intermediate numbered object would be missed both when marking for garbage collection, and when copying objects for grafting. Add a function to resolve only one step for these two uses. The following is an example of a file that would break during garbage collection if we follow full indirect reference chains: %PDF-1.3 1 0 obj <</Type/Catalog /Foo[2 0 R 3 0 R]>> endobj 2 0 obj 4 0 R endobj 3 0 obj 5 0 R endobj 4 0 obj <</Length 1>> stream A endstream endobj 5 0 obj <</Length 1>> stream B endstream endobj
2016-07-06pdf: Drop generation number from public interfaces.Tor Andersson
The generation number is only needed for decryption, and is assumed to be zero or irrelevant for all other uses. Store the original object number and generation in the xref slot, so that we can decrypt them even when the objects have been renumbered, without needing to pass the original object number around through the stream loading APIs.
2016-07-06pdf: Increment generation number in the xref when deleting an object.Tor Andersson
2016-07-06pdf: Flatten inheritable page properties when copying pages.Tor Andersson
Affects pdfclean, pdfmerge, and pdfposter.
2016-07-06pdf: Check ownership when adding objects to a document.Tor Andersson
2016-07-06gl: Fix buffer overrun when there are too many annotations.Tor Andersson
2016-07-06Add support for decoding pbm/pgm/ppm/pam images.Sebastian Rasmussen
2016-07-06Add optional support for JPEG-XR.Sebastian Rasmussen
2016-07-06Some minor optimizations.Tor Andersson
2016-07-06Add optional support for Luratech JPEG2000 decoder.Sebastian Rasmussen
2016-07-06Expose LAB colorspaceSebastian Rasmussen
2016-07-05Fix Java makefile to link to system freetype library.Sebastian Rasmussen
2016-07-05Support J2K/JP2 files in CBZ.Sebastian Rasmussen
2016-07-05cbz: Use case insensitive comparison for extension.Sebastian Rasmussen
2016-07-05Fix bug in optimized clearing of CMYK pixmaps.Sebastian Rasmussen
The implementation assumed that a variable contained a number of 32-bit words when it actually contained the number of bytes hence fz_clear_pixmap_with_value() touched memory outside of the samples array.
2016-06-30Fix bug when opening small PDF-files.Sebastian Rasmussen
The PDF repair code suffered an buffer index overflow while searching the buffer of file data if the file (and hence the buffer) was sufficiently small. This also happened while attempting to open a path pointing to a directory as they are treated as zero byte files.
2016-06-29Handle alpha-only PAM output as grayscale.Sebastian Rasmussen
2016-06-29Output only as many components for PAM as exist.Sebastian Rasmussen
2016-06-29JBIG2 is supported by jbig2dec/luratech decoders.Sebastian Rasmussen
2016-06-29Make docs/thirdparty.txt info current and accurate.Sebastian Rasmussen
2016-06-29Print font encoding in mutool info.Sebastian Rasmussen
2016-06-29Update examples.Tor Andersson
2016-06-29Add Source Han Sans CJK per-language fonts.Tor Andersson
Import fonts from v1.004.
2016-06-28Mudraw: Fix interation with banding and display list.Robin Watts
We had moved the ctm into the display device, which meant it no longer transformed the bounds given to the list device to do scissoring. Move it back. Same fix for muraster.
2016-06-28Fix inconsistency in band handling.Robin Watts
In an earlier commit, I changed some of the band writing functions to take the band starting offset, rather than the band number. This was done to accomodate the idea of rendering the page in bands of different heights. Sadly, it seems I didn't push this all the way through, and had different band writing functions still taking the band number. Fix all the band writing functions to be consistent.
2016-06-27MSVC: Add DebugGProof configurationRobin Watts
Allows testing of SUPPORT_GPROOF builds on windows.
2016-06-27Fix GProof operation.Robin Watts
Broken due to recent API changes. Also retire SUPPORT_GPROOF in favour of FZ_ENABLE_GPRF.
2016-06-23Always print filenames in mudraw.Sebastian Rasmussen
Regardless of whether rendering in background thread or not the filename and the page number should be printed.
2016-06-23Update muraster tool and add it to the unix build.Tor Andersson
2016-06-23epub: Use markup language when shaping and selecting fallback fonts.Tor Andersson
2016-06-23Update JNI code. Take explicit alpha argument in toPixmap functions.Tor Andersson
2016-06-23modified mupdf.c and mupdf_native.c to adapt to APIs that have recently changed.fredrossperry
2016-06-23Some Makefile cleanups.Tor Andersson
2016-06-23Support TIFF files in CBZ.Tor Andersson
2016-06-22Tweak PDF annot API.Robin Watts
The values returned from the pdf_annot_{contents, author, date} functions should not be altered, hence make it const.
2016-06-22Add support for getting additional annotation informationMichael Vrhel
GSView will make use of the details about the annotations including the author, the date and which annotation the annotation is in reply to. This commit provides the interface to do this easily.
2016-06-22MSVC build: Fix build of noto.cRobin Watts
The old definition for the RETURN macro relied on it either being on a non-standard C compiler, or it being used at the start of a block. Fix with a better macro.
2016-06-22Fixes needed for muraster to buildMichael Vrhel
2016-06-22Update font names in libfonts.vcprojMichael Vrhel
Font names changed with the update of the base 14 fonts to the latest release from URW. The project file had to be updated with the new names. Also the Droid font names had changed so generate.bat was updated.
2016-06-22Use vertical presentation forms.Tor Andersson
Remap glyphs using presentation form code points rather than having a separate vertical variant of the CJK font using truetype collections. Recreate DroidSansFallback fonts from original source, extend the glyph coverage from DroidSans, subset the glyphs to match CJK CID collections, and optimize the outlines using fontcrunch.
2016-06-22epub: Expose Dingbats, Symbol, and Emoji fonts by name.Tor Andersson
2016-06-22Update cmap cleaning scripts.Tor Andersson
2016-06-22mudraw: Don't apply ctm twice when not using display list.Tor Andersson
2016-06-22gl: Fix annotation textures that have alpha, while page textures don't.Tor Andersson