summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-19Fix 698539: Don't use xps font if it could not be loaded.Tor Andersson
xps_load_links_in_glyphs did not cope with font loading failures.
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-12Update draw-blend.c to support spot blending.Michael Vrhel
Proper blending of spots is dependent upon the blending color space as well as the blend mode. In particular when the blend mode is non-separable or non-white preserving normal blending should be used for the spot colorants. Incorporates various fixes and optimisations squashed back to this one commit for clarity. Some of these fixes/optimisations are due to Michael Vrhel. In particular we move to handling non-isolated groups in the same way as gs.
2017-09-12Fix whitespace in draw-blend.cRobin Watts
2017-09-12Fix Gradients in the presence of spots.Robin Watts
Incorporates fixes from Michael: When dealing with spot colors, if the destination space is pure CMYK and we have unsupported spots we can do a weighted addition of the spot CMYK colorant like Adobe does in the PSD image format. If the destination space is RGB we need to do a traditional color mapping of each pixel.
2017-09-12Add -O flag to mudraw to control spots.Robin Watts
2017-09-12Fix separation pixmap conversion functions for DeviceN.Robin Watts
2017-09-12Remove redundant #define that is only used at the same place it's set.Tor Andersson
2017-09-12Move fz_strcasecmp to the header it belongs to.Tor Andersson
2017-09-12Fix merge error in murun.cTor Andersson
2017-09-12Update CMap location URLs.Tor Andersson
2017-09-12Add 'make watch' target.Tor Andersson
Linux specific and depends on the inotify-tools package. Will watch source and header files and rebuild mupdf when they are modified.
2017-09-12Clean up cached color converters in case of error.Sebastian Rasmussen
2017-09-12Fix leaks upon error while copying array/dict.Sebastian Rasmussen
2017-09-08Ensure colorspace colorants are named for ICC spaces too.Robin Watts
2017-09-08Start to rework plotters.Robin Watts
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-08Update draw device to cope with spots.Robin Watts
If draw device is passed a pixmap with disabled separations, it may have to push an extra group at the top to allow for the actual rendering to properly happen in cmyk+spots, and then get folded down at the end. This pushing cannot happen at create time, due to it being dependent on the defualt_cs settings. Accordingly, we push it (just once) on the first drawing operation. This means we need to be able to convert from "colorspace + set of spots" to "different colorspace + different set of spots". This in turn means we need to be able to drive lcms slightly differently (to tell it whether to copy the spots unchanged or not), so we have to amend the CMS interface code a bit for that. Currently we lack plotters to properly cope with plotting images and shades with spots, so this will give a warning and do nothing. To be filled in in future commits. Ensure fz_get_icc_link accepts NULL to mean default color params. Incorporates fixes from Michel Vrhel: With transparency groups we can have RGB + spot pixmaps. When drawing into those we need a mixture of colorant polarity. Ensure that fz_convert_separation_colors takes account of this. Fix C1 of Altona_Technical_1v1_x3.pdf (allow for output intent in fz_clone_pixmap_area_with_different_seps).
2017-09-08Squash 64bit build warning.Robin Watts
2017-09-08Pull in latest lcms2 fixes (brings us up to lcms2.9 equivalence)Robin Watts
2017-09-08Remove unnecessary conditional.Robin Watts
The conditional is always == 255 here.
2017-09-08Fix return of void function in jbig2 code.Robin Watts
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-07Make sure to always drop a fz_device even upon error.Sebastian Rasmussen
2017-09-07Initialize variables to appease clang scan-build.Sebastian Rasmussen
2017-09-07Declare variable fz_var().Sebastian Rasmussen
2017-09-05Make luratech decoder glue compile after interface changes.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-28Remove code that no longer compiles.Sebastian Rasmussen
fz_dump_gel() was removed in commit 9a725130b9b16daa332f8502e24eac9cab4cf9b2.
2017-08-21Fix HTML entities in docs.Tor Andersson
2017-08-21Fix 698374: Compute line and block bounding boxes when device closes.Tor Andersson
2017-08-21Make fz_stext_block and fz_stext_line double linked lists.Tor Andersson
2017-08-21Remove fz_char_and_box struct.Tor Andersson
Use fz_stext_char directly instead.
2017-08-21Remove redundant fz_stext_char_bbox function.Tor Andersson
2017-08-17Fix printing of file level headers and trailers in mudraw.Tor Andersson
2017-08-17Add PS document writer.Tor Andersson
2017-08-17Fix Android java build: harfbuzz memory callbacks.Tor Andersson
2017-08-17Remove redundant NULL check.Tor Andersson
fz_colorspace.name is an array, not a pointer, so will never be NULL.
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-17Only load the alpha channel in PNG images when it is present.Tor Andersson
2017-08-17Add PCL document writer.Tor Andersson
Fix color PCL writing bugs introduced when making alpha channels in pixmaps optional.
2017-08-17Add PWG document writer.Tor Andersson
Option parsing is not implemented yet.
2017-08-17Detect bold/italic by also checking the font name.Tor Andersson
2017-08-17Use font name in HTML output.Tor Andersson
2017-08-17Detect superscript style in stext html/xhtml output.Tor Andersson