summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
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-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-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-29Print font encoding in mutool info.Sebastian Rasmussen
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-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-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-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-22mudraw: Don't apply ctm twice when not using display list.Tor Andersson
2016-06-22Transform device call scissor rectangles by device matrix.Tor Andersson
2016-06-21Handle colorspaces correctly when writing pnm.Sebastian Rasmussen
Previously 1 and 3 component images with alpha were not handled correctly.
2016-06-21Fix typo due to switching from int to size_t.Sebastian Rasmussen
Commit 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca introduced a typo when doing the int -> size_t conversion. This caused a coverity warning which is now fixed.
2016-06-20Fix signed/unsigned warning.Robin Watts
2016-06-20Bug 696839: Fix -I option to mudraw.Robin Watts
The argument processing was expecting an argument after I.
2016-06-20Bug 696847: Fix SEGV in svg device.Robin Watts
Silly typo.
2016-06-20Add simple muraster.Robin Watts
A cutdown mudraw that only copes with simple raster output.
2016-06-17Fix off-by-one error in split_at_script.Tor Andersson
2016-06-17Update base 14 fonts to the latest release from URW.Tor Andersson
The fonts are now under the SIL Open Font License! Converted with AFDKO tool 'tx': tx -cff +F +S +T -b -n -gx $EXCL -a *.t1 $EXCL is the list of PUA glyphs used by PCL that we don't need in mupdf. The Dingbats and Symbol fonts have only been regenerated from the old version, since there are no new glyphs (but several problems) in the newest version.
2016-06-17Set pixmap resolution when creating pixmaps for draw device.Tor Andersson
2016-06-17Add separate X and Y resolution to draw device options.Tor Andersson
2016-06-17Add mediabox argument to fz_new_display_list.Tor Andersson
To return the proper size from fz_bound_display_list, which has been broken since the begin_page device call was removed.
2016-06-17Add device space transform state to draw device.Tor Andersson
Allows us to remove the out parameter 'transform' from fz_begin_page.
2016-06-17Allow PDF strings to be > 16bits.Robin Watts
This stops Bug693111.pdf giving errors.
2016-06-17Fix fz_write_pam code.Robin Watts
It was incorrectly missing the alpha in the header writing code.
2016-06-17Improve banding API.Robin Watts
Previously the API assumed that all bands had to be the same height. By moving the multiplication into the caller, we can lift that assumption.