Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-24 | Change colorspace 'device_n' field to be a flags word. | Robin Watts | |
2017-10-24 | Logic for Sep and DeviceN colorspaces with C,M,Y, or K. | Michael Vrhel | |
Special care is required when the DeviceN color space has cyan, magenta, yellow or black. For example, even if we support separations in the destination, if the color space has CMY or K as one of its colorants and we are drawing to an RGB or Gray pixmap we will want to do the tint transform. Also if the pixmap has no seps memember present, we support the separations if the destination is CMYK and the DeviceN colorspace has no "Spot" (non-CMYK) colorants. | |||
2017-10-16 | Print warning when PDF version number is not a known version. | Tor Andersson | |
2017-10-16 | Check for integer overflow when validating new style xref Index. | Tor Andersson | |
2017-10-16 | Add missing pdfsign.c file to MSVC project. | Robin Watts | |
2017-10-13 | Add fz_deflate family of functions. | Robin Watts | |
This gives us a friendlier interface to zlib. Simplifies PNG output and PCLM output code. | |||
2017-10-13 | Rename internals of flate filter. | Robin Watts | |
This is to avoid conflict with the next commit. | |||
2017-10-13 | Simple PCLm device. | Robin Watts | |
Both bandwriter and document_writer interfaces cope with multi page docs. Update mudraw to output pclm format too. Incorporates fixes from Tor. | |||
2017-10-13 | Fix further problem seen in PDF_2.0_FTS/fts_23_2311.pdf | Robin Watts | |
This file has a type 3 font in it. It first uses a 'd1' glyph, that uses a pattern. Accordingly, we we render that pattern to a mask tile and store that tile. Then it uses a 'd0' glyph, which uses the same pattern. The cache is checked, and we erroneously pick up the cached tile to reuse it - but this is not a colored rendering, so we assert on plotting. The fix is to ensure that the required colorspaces match. This requires us to add the colorspace to the tile key. Unfortunately, this means that colorspaces have to become key_storable, so the patch is slightly larger than would otherwise be the case. | |||
2017-10-13 | Fix assert in fts_23_2311.pdf | Robin Watts | |
Ensure that if we ask for a color converter for a NULL colorspace, that we treat it as devicegray. This copes with the mask cases. | |||
2017-10-12 | Don't cache page count in pdf_document. | Tor Andersson | |
Make sure any changes to the page tree are always reflected immediately. The rev_page_map lookup cache exists when we load the outlines in order to resolve links faster, so we don't need to worry about that one. The linear_page_refs stuff is more troublesome, so don't mix editing a PDF with progressive loading! | |||
2017-10-12 | Fix reference counting error in pdf_add_page. | Tor Andersson | |
2017-10-12 | mutool run: Take reference to global colorspaces. | Tor Andersson | |
Avoid double freeing the device colorspaces. | |||
2017-10-12 | Refactor image format magic signature recognition into its own function. | Tor Andersson | |
2017-10-12 | Change default scalable SVG resolution. | Tor Andersson | |
HTML doesn't respect the DPI setting, so SVG images end up too big. | |||
2017-10-12 | Purge out of date separation bindings. | Tor Andersson | |
2017-10-12 | Add 'mutool sign' tool for verifying digital PDF signatures. | Tor Andersson | |
2017-10-12 | Fix pdf_widget/pdf_annot typedefs. They are the same struct. | Tor Andersson | |
2017-10-12 | Fix bug in murun when creating buffers from strings. | Tor Andersson | |
The code only worked for string literals, not garbage collected or short strings. | |||
2017-10-12 | Some more consts. | Tor Andersson | |
2017-10-12 | Make fz_open_memory take a const buffer. | Tor Andersson | |
2017-10-12 | Make image loading use const data pointers. | Tor Andersson | |
2017-10-05 | Fix out of bounds check in pnm parser. | Sebastian Rasmussen | |
2017-10-05 | Remove unused code. | Sebastian Rasmussen | |
2017-10-05 | Remove shadowed variables. | Sebastian Rasmussen | |
2017-10-05 | Avoid double literals and double math functions. | Sebastian Rasmussen | |
2017-10-04 | Mark another variable fz_var(), avoiding optimization. | Sebastian Rasmussen | |
This really should have been part of commit 0ef7cb983c4325156e08525381542ae3ada04720. | |||
2017-10-02 | Drop stream upon error in inline stream. | Sebastian Rasmussen | |
2017-10-02 | Make sure to drop chain upon error in raw and crypto filters. | Sebastian Rasmussen | |
2017-09-27 | Bug 698593: Fix assert in image painting. | Robin Watts | |
2017-09-27 | Bug 698588: Short circuit plotting of images if alpha == 0. | Robin Watts | |
2017-09-25 | Bug 698592: Mark variable fz_var(), avoiding optimization. | Sebastian Rasmussen | |
The change in 2707fa9e8e6d17d794330e719dec1b08161fb045 in build_filter_chain() allows for the variable chain to reside in a register, which means that the bug is likely to only be visible if built under optimization. First the chain variable is transferred to chain2, then set to NULL, then when an exception occurs in build_filter() the filter chain will be freed by build_filter(). Next the expectation is that execution proceeds to fz_catch() where fz_drop_stream() would be called with chain == NULL. However due to the chain variable residing in a register, its value is not NULL as expected, but was reset to its original value upon the exception (since they use setjmp()), hence fz_drop_stream() is called with a non-NULL value. Marking the chain variable with fz_var() prevents the compiler from allowing the chain variable to reside in a register and hence its value will remain NULL and never be reset. | |||
2017-09-25 | Introduce sanitize-relase build target. | Sebastian Rasmussen | |
Sometimes ASAN issues only occur if optimization is enabled. This build target allows for testing under these conditions. | |||
2017-09-22 | Skip to next whitespace character instead of aborting when repairing PDF. | Tor Andersson | |
2017-09-22 | Fix typo in default output format for pixmap output in muconvert. | Tor Andersson | |
2017-09-22 | Fix places where we assign state without using it. | Robin Watts | |
Sebastian points out that at various points we assign state only to overwrite it without using it later on. Harmless, but fixed here for neatness. Thanks. | |||
2017-09-22 | Update LCMS2.art with EXTRA channels and warnings fixes. | Robin Watts | |
2017-09-22 | Minor comment tweaks. | Robin Watts | |
2017-09-22 | Ensure PNG output is not premultiplied output. | Robin Watts | |
2017-09-20 | tiff: Support images with 24/32 bits per component. | Sebastian Rasmussen | |
2017-09-20 | Initialize libjpeg state to avoid crashes upon error. | Sebastian Rasmussen | |
Previously, in case of error in fz_jpg_mem_init(), jpeg_finish_decompress()/jpeg_destroy_decompress() would be called before jpeg_create_decompress() had initlized all state. This sometimes led to segfaults or accessing uninitialized data. | |||
2017-09-20 | Remove comment markers about interfaces not throwing exceptions. | Sebastian Rasmussen | |
2017-09-20 | Disable further device calls upon error while closing device. | Sebastian Rasmussen | |
2017-09-20 | Drop rasterizer upon error while bounding path. | Sebastian Rasmussen | |
2017-09-20 | gl: Remember scroll position in history and bookmarks. | Tor Andersson | |
2017-09-20 | gl: Scroll to link coordinates when following links. | Tor Andersson | |
Also save link coordinates in outline nodes. | |||
2017-09-20 | gl: Add 'I' invert colors command. | Tor Andersson | |
Also apply an inverse gamma correction curve. | |||
2017-09-20 | Fix optional alpha pixmap support in gamma correction function. | Tor Andersson | |
2017-09-19 | Fix 698558: Handle non-tags in tag name comparisons. | Tor Andersson | |
Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom. | |||
2017-09-19 | Fix 698540: Check name, comment and meta size field signs. | Tor Andersson | |