summaryrefslogtreecommitdiff
path: root/source/pdf
AgeCommit message (Collapse)Author
2017-09-13Consistently drop filter chain upon error.Sebastian Rasmussen
2017-09-13Remove old workaround.Sebastian Rasmussen
2017-09-13Do not lie.Sebastian Rasmussen
2017-09-12Fix leaks upon error while copying array/dict.Sebastian Rasmussen
2017-09-08Update fz_separations equivalent color mechanism.Robin Watts
Incorporates fixes from Michael. Rather than specifically giving it rgb and cmyk values, separations now include the colorspace. Conversions can then be done into ANY colorspace we need. Note, that we maintain the old way of working for the gproof device. Also, fix pdf_page_separations to correctly find all separations. This involves recursively looking through colorspaces, forms and shadings for colorspaces therein, making sure we don't run into any circular references. We do 2 passes, so that we can pick up as many colorants as Separations as possible. On the second pass we pick up any colorants we missed in terms of DeviceN spaces. The purpose of this is to try to ensure that we get as many tint transforms as single input functions as we can. This may not be important in the grand scheme of things, but seems neater.
2017-09-08Remove unnecessary fz_try()/fz_catch().Sebastian Rasmussen
2017-09-07Use dict_put_drop/array_push_drop wherever possible.Sebastian Rasmussen
2017-09-07Initialize variables to appease clang scan-build.Sebastian Rasmussen
2017-08-31Always add newline before 'endstream' keyword for PDF/A compliance.Philipp Knechtges
2017-08-31Adjust PDF header for PDF/A compliance.Philipp Knechtges
Remove superfluous '%' character in the comment with binary bytes.
2017-08-31Do not deflate metadata (necessary for PDF/A compliance).Philipp Knechtges
2017-08-17Fix 698357: Strip alpha and spot channels when saving PDF images.Tor Andersson
The logic for detecting and stripping alpha channels was subtly wrong. Simplify it, and also make it cope with spot colors.
2017-08-17Add FZ_REPLACEMENT_CHARACTER define for U+FFFD character.Tor Andersson
2017-08-16Bug 698168: Add support for writing indexed images to pdfs.Sebastian Rasmussen
2017-08-16Add bits per component parameter for flate and lzw compressed images.Sebastian Rasmussen
2017-08-16Add pdf filter parameters to DecodeParms when writing images.Sebastian Rasmussen
2017-08-15Avoid using unsupported alternate form printing of hex number.Sebastian Rasmussen
2017-08-09Remove redundant (and incomplete) checks when encountering OCGs.Tor Andersson
The checks were duplicated between pdf_process_BDC and pdf_is_hidden_ocg. The checks in the former function were incomplete: they only checked the for OCG type objects and incorrectly discarded OCMD type objects. Remove the checks from pdf_process_BDC and let pdf_is_hidden_ocg handle all of them instead.
2017-08-02Bug 698279: Throw exception if xref object number offset too big.Sebastian Rasmussen
2017-07-27Remove unnecessary check of colorspace pointer.Sebastian Rasmussen
2017-07-27Fix overprint detection in pdf interpreter.Robin Watts
overprint is a boolean, overprint mode is an int. Neither is a name.
2017-07-27Avoid leaking colorspaceRobin Watts
2017-07-25Omit drawing annotations that are not opened.Sebastian Rasmussen
2017-07-25Make it possible to check for properties of PDF annotations.Sebastian Rasmussen
2017-07-24Fix ordering of quadpoints in highlight synthesis.Tor Andersson
The spec is full of lies. The internal ordering of points in a QuadPoint is not counterclockwise [ll lr ur ul], it's crosswise [ll lr ul ur].
2017-07-21Reuse pattern tiles when running PDF interpreter directly.Tor Andersson
2017-07-21Fix 698210: Remove superfluous recursion check in pdf_load_embedded_cmap.Tor Andersson
We already mark and check the usecmap entry where it is loaded.
2017-07-19Fix use-after-free of default colorspaces.Robin Watts
2017-07-19Add some consts to color conversions.Robin Watts
2017-07-19Extend fz_colorspaces to better cope with DeviceN.Robin Watts
We now keep a list of colorant names for every colorspace, along with a an 'is_device_n' flag, set for all separation and deviceN spaces.
2017-07-19Rejig page separations interface.Robin Watts
Specifically this is aimed so we can efficiently get separation details for PDF files (which may require a lengthy search process).
2017-07-19Fix colorspace leaks with group colorspaces.Robin Watts
2017-07-20Use annotation color when synthesizing text annotations.Sebastian Rasmussen
2017-07-20Synthesize annotation appearance if normal appearance is absent.Sebastian Rasmussen
Fixes part of bug 697951.
2017-07-17Non-isolated groups should use parent color spaceMichael Vrhel
Even if the group defines a color space, it should be ignored if the group is not isolated. Fixes issue in page 7 of Altona test.
2017-07-17Set colorspace name field.Tor Andersson
2017-07-17If page has no group then use output intent color spaceMichael Vrhel
If the document has an output intent but no page group was defined then we should not let the target device color space define what our base group is. Instead we should push a group that uses the target output intent color space. This problem occurs on page 3 of the Altona test file (TextKnockout page).
2017-07-17Add colorspace handling to transparency groupsMichael Vrhel
Also force softmasks to be isolated groups.
2017-07-06fz_var() variables must be initialized before fz_try.Sebastian Rasmussen
2017-07-06pdf: Avoid leaking indirect object upon error.Sebastian Rasmussen
2017-07-06pdf: Drop object upon error while renumbering objects.Sebastian Rasmussen
2017-07-06pdf: Drop cmap object in case of exception.Sebastian Rasmussen
2017-07-06pdf: If js interpreter fails, avoid loading document js.Sebastian Rasmussen
2017-07-06pdf: Drop font descriptor in case of error.Sebastian Rasmussen
2017-07-06Drop pdf processor graphics state upon error.Sebastian Rasmussen
2017-07-06pdf: Drop the collection schema dictionary in case of error.Sebastian Rasmussen
2017-07-04Remove is_static from fz_new{,_icc}_colorspace.Robin Watts
No longer required, and causes leaks. Also, fix some reference counting problems with colorspaces.
2017-07-03Avoid leaking an fz_stream for every unknown crypt handler.Robin Watts
2017-07-03Don't leak cmap->tree if we abort cmap loading before sort.Robin Watts
2017-06-29pdf: Drop appearance stream content buffer upon error.Sebastian Rasmussen