summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2018-11-09Fix 695390: Increase number of samples in Type 1 function shadings.Tor Andersson
15 years have passed since we first set the sampling to a 32x32 mesh. Quadrupling it to 64x64 sounds about right to me.
2018-11-08Fix 699343: Skip spaces before data in DCTDecode filter.Tor Andersson
2018-11-08Fix 699310: Add -q option to mudraw to suppress 'page %d' messages.Tor Andersson
Useful if printing text or traces to stdout. Be quiet automatically if printing to stdout.
2018-11-08Fix 699352: Call begin_layer for all marked content in PDF.Tor Andersson
Since we call end_layer without distinction, we should also call begin_layer the same way. Also change the XML to emit separate tags for beginning and ending a layer, since there is no guarantee the layer calls will be neatly nested with clipping pushes and pops; nor is there a guarantee that the PDF will even balance the BMC/BDC and EMC operators.
2018-11-07Fix typo.Tor Andersson
2018-11-07Fix 698971: Detect ICC colorspace mismatch in TIFF loader.Tor Andersson
Make sure that the ICC colorspace has the same number of components as the photometric interpretation.
2018-11-07Use utility parsing functions in svg_parse_transform.Tor Andersson
2018-11-07Fix 699747: Apply viewBox transform.Tor Andersson
2018-11-07Resolve objects in pdf_debug_obj().Sebastian Rasmussen
2018-11-07Write placeholder appearance streams for digital signatures.Tor Andersson
A proper appearance stream is written when signing with a certificate. This is just to create a placeholder appearance when the original document did not write one.
2018-11-07Fix 700140: Ask LCMS transform to copy alpha channels.Tor Andersson
2018-11-07Make compression bomb detection optional.Tor Andersson
2018-11-07pnm: Take alpha into account when skipping over image data.Sebastian Rasmussen
2018-11-07Fix double header output in muraster.Robin Watts
Also fiddle the #ifdeffery to get sane defaults.
2018-11-07Add explicit jmp_buf dereferencing to allow using fz_try from C++.Tor Andersson
2018-11-07Handle bogus font ascender and descender values.Tor Andersson
2018-11-07Fix 700030: Use actual font glyph widths when extracting text.Tor Andersson
Only use the PDF character widths when also stretching glyphs to match the PDF metrics.
2018-11-07Fix 700030: Tweak text extraction space adding heuristics.Tor Andersson
Ignore space-sized backward motions. Assume that these motions are either extreme levels of kerning, or something else fishy going on.
2018-11-07Fix 700053: Add 'decrypt' option to pdf_save_document.Tor Andersson
This option is exposed as the -D flag to mutool clean. Allow saving a document without encryption. The next step is to allow saving a document with new encryption, but this may require a fair amount of rejigging since the PDF write code to keep separate doc->crypt objects for decryption and encryption.
2018-11-07Fix writing encrypted PDF files with 'decompress' option.Tor Andersson
2018-11-07Fix 700043: Don't assume a font is t3 just because fz_outline_glyph fails.Tor Andersson
2018-11-06Update AFParseDateEx to handle dates as a contiguous string of digits.Paul Gardiner
Update to match Adobe Reader's behaviour. This fixes bug #700128.
2018-11-01Bug 700040: tar: Handle posix, ustar and v7 tar formats.Sebastian Rasmussen
These formats are all almost identical to GNU tar format.
2018-10-26Guard all calls to the passthrough device in the test device.Sebastian Rasmussen
Without guards the device calls might end up with a device pointer being NULL, causing segfaults.
2018-10-26Drop documents while exception progressing files in mutool merge.Sebastian Rasmussen
2018-10-26Avoid dropping stream/color converter twice upon exception.Sebastian Rasmussen
2018-10-26Rewrite try/always/catch macros to allow fz_context to be opaque.Tor Andersson
Hide fz_stack_slot and exception handling details too. Also make sure we have an initialized jmp_buf so we can safely throw from the always block even in the exception stack overflow case.
2018-10-26Use 14 bits of precision for image drawing, to allow for larger images.Tor Andersson
Now the image size limit is 131072 x 131072 instead of 32768 x 32768.
2018-10-25Make fixed point math precision in image drawing a #define.Tor Andersson
2018-10-25Handle premultiplied alpha in generic pixmap color conversion.Tor Andersson
2018-10-25Handle premultiplied alpha in pixmap color conversions (CMYK only).Tor Andersson
2018-10-25Fix asserts and checks in fast_xxx_to_yyy functions.Tor Andersson
fast_rgb_to_cmyk had || instead of && so always triggered incorrectly. Only throw, no need to both assert and throw.
2018-10-25Add and use fz_convert_pixmap_samples helper function.Tor Andersson
2018-10-25Drop SLOWCMYK path.Tor Andersson
If you want accurate CMYK, don't build with FZ_ENABLE_ICC=0.
2018-10-25Make alpha channel unmultiply and premultiply utility functions public.Tor Andersson
2018-10-25Guard loading embedded ICC profiles in images with FZ_ENABLE_ICC.Tor Andersson
Stops all the extra errors and warnings about missing ICC support.
2018-10-25Rename NO_ICC to FZ_ENABLE_ICC=0|1 to match other config.h options.Tor Andersson
2018-10-24Pass context to fz_paint_image to allow for printing warnings.Tor Andersson
2018-10-24Since fz_end_group may throw, don't call it inside fz_always.Sebastian Rasmussen
If running the page throws an exception, we don't need to call end_group since the page interpretation is aborted and won't be finished.
2018-10-24Do run processor clip stack balancing in close (not drop) callback.Tor Andersson
The close callback should make sure everything is cleanly shut down. The drop callback frees leftover memory when shutting down either cleanly or when aborting processing due to errors.
2018-10-24Purge TRYLATER stuff from XPS interpreter.Sebastian Rasmussen
This is untested code, that has likely bitrotted.
2018-10-24Drop page upon exception verifying page signatures.Sebastian Rasmussen
2018-10-24Drop page upon exception while loading hinted page.Sebastian Rasmussen
2018-10-23Drop indirect reference upon exception.Sebastian Rasmussen
2018-10-23Drop document upon exception when opening zip.Sebastian Rasmussen
2018-10-23Drop SVG document upon exception opening directory.Sebastian Rasmussen
2018-10-23Drop document upon exception opening directory.Sebastian Rasmussen
Or problem allocating a new html font set.
2018-10-23Drop coords upon exception cloning path.Sebastian Rasmussen
2018-10-23fz_end_page() may throw exception, handle that and free page.Sebastian Rasmussen
2018-10-23Drop pixmap upon exception allocating draw device.Sebastian Rasmussen