summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2018-03-14Bug 699110: Fix Antialiased renderer to look at correct scale factor.Robin Watts
Rather than looking at their individual scale factors, they were looking at the global one.
2018-03-14Bug 699109: Fix overwrites with COP renderer.Robin Watts
2018-03-13Bug 698963: Fix dash rendering.Robin Watts
When rendering dash lines with a dash pattern that starts with a length of zero, the first dash should be of zero length. If we are using round caps, this should actually show up!
2018-03-12Bug 699106: Correct progress figures when using display_list.Robin Watts
The progress figures did not correctly add up to progress_max. Now they do. In addition, if we abort, the progress figure will accurately indicate how far we got.
2018-03-12Ensure we pass AA options to draw device and set text_bits appropriately.Tor Andersson
aa.text_bits should be 0 when using the 'any' or 'center' rasterizers.
2018-03-07Distinguish between simple and CID font resources in cache.Tor Andersson
2018-02-27Fix 699076: Scoping bug in png_write_band.Tor Andersson
2018-02-27Remove pdf_xobject wrapper struct.Tor Andersson
Just use the pdf_obj directly. Revise ap_iteration and split annot->dirty into separate flags. One flag for needs_new_ap, and one for has_new_ap (to be used by clients who may have cached a rendered annotation).
2018-02-27Use fz_point for pdf_set_annot_ink_list and vertices too.Tor Andersson
2018-02-27Improve line ending style accessors.Tor Andersson
2018-02-27Add annotation QuadPoints creation functions.Tor Andersson
2018-02-27Add annotation Line access functions.Tor Andersson
2018-02-27Add annotation Vertices creation functions.Tor Andersson
2018-02-27Add annotation InkList creation functions.Tor Andersson
2018-02-27Get border width from BS/W if Border is missing.Tor Andersson
2018-02-27Return correct default icon names for optional annotation property.Tor Andersson
2018-02-27Don't set a (useless) rectangle when creating annotations.Tor Andersson
2018-02-27Fix fz_expand_rect in presence of empty rectangles.Tor Andersson
2018-02-27Add fz_expand_irect function.Tor Andersson
2018-02-27Add fz_translate_rect helper function.Tor Andersson
2018-02-27svg: Fix circle/ellipse drawing.Tor Andersson
2018-02-27Fix bug in pdfshow (confusion between indirect/resolved streams).Tor Andersson
2018-02-27Remove typedef in favor of explicit enum keyword.Tor Andersson
Avoids the silliness of fz_annot_type pdf_annot_type().
2018-02-27Fix bug in pdf_annot_icon_name.Tor Andersson
2018-02-27Print newline at end of pdf_debug_obj.Tor Andersson
2018-02-27Don't use constants larger than will fit in a signed int in enum.Tor Andersson
2018-02-27Use text encoding for pdf_choice_widget options and values.Tor Andersson
Adds a requirement on the caller to free the returned strings.
2018-02-27Use proper encoding for pdf_field_value and update_field_value.Tor Andersson
2018-02-27Accept NULL in fz_drop_output.Tor Andersson
2018-02-27Recognize Adobe illustrator files as PDF format.Tor Andersson
2018-02-23Include a font's style in its name.Paul Gardiner
We were previously using the font's family as its name. Now if only one of family and style are defined we use that. If both are present we concatenate family and style with an intervening space, unless style already has family as a prefix, in which case we just use the style. Better would be to use the font's full name, but that is more difficult to obtain via the freetype API.
2018-02-14Remember to end knockout group when drawing image.Sebastian Rasmussen
2018-02-14Bug 698890: Remember to end groups when showing images.Sebastian Rasmussen
2018-02-13Bug 698901: Drop pixmaps/knockout group upon error when ending group.Sebastian Rasmussen
Previously the call to fz_convert_pixmap() threw causing a destination pixmap leak. This illustrated a bigger issue with the error handling so now all types of pixmaps are dropped and care is taken to also end the knockout group, should there be any.
2018-02-13Avoid revisiting the same page tree node repeatedly.Sebastian Rasmussen
Only attempt to progress to new page tree nodes if a new node to process has actually been found. Previously if e.g. doc.findPage(1) was called in murun for a single page document the error message was "cycle in page tree" because the single page tree node was visited twice. Now the error message is "cannot find page 1 in page tree", which is more accurate.
2018-02-13Add JNI and JS bindings to layer device calls.Tor Andersson
2018-02-13Add fz_begin_layer/fz_end_layer.Robin Watts
Call these from the PDF interpreter. Make the DisplayList and Trace devices cope. Use these in the SVG output device.
2018-02-13mutool extract: Don't save raw CMYK jpegs when the -r flag is enabled.Tor Andersson
2018-02-13Use indirect references when pre-loading image resources.Tor Andersson
Don't use directly loaded objects; since the image code assumes that you always use an indirect reference to the dictionary/stream.
2018-02-13Bug 699018: Null terminate buffer in fz_snprintf() even if too short.Sebastian Rasmussen
Previously the trailing null terminator would not be written if the formatted string ended up longer than the buffer.
2018-02-12jbig2: Improve error message.Sebastian Rasmussen
2018-02-12jbig2 globals are streams, this implies indirect references.Sebastian Rasmussen
Previously mupdf would attempt to load any indirect reference, whether it was a stream or not.
2018-02-12Bug 698998: Avoid recursion when opening jbig2 image streams.Sebastian Rasmussen
Previously the JBIG2 globals object might be indirect and if that reference pointed to the object containing the stream itself then mupdf would recurse until running out of error stack. Thanks to oss-fuzz for reporting.
2018-02-12Expose detailed PDF permissions.Tor Andersson
2018-02-12Fix changed annotations not marked as dirtyPaul Gardiner
Events such as mouse up/down can cause a change to the appearance of a widget annotation. That the change has happened is flagged by incrementing the iteration count of the appearance stream. The widget is then recognised as dirty when the ap_iteration value, stored in the pdf_widget structure, differs from the appearance stream's actual iteration. This commit removes a line of code that wrongly reset the iteration to 1 each time load_or_create_form was called, hence masking the widget being dirty.
2018-02-08Bug 698996: Disallow "" as owner password unless user password also "".Robin Watts
2018-02-08Add 'null' output device so we can remove NULL checks in hot functions.Tor Andersson
2018-02-08Add FZ_DEBUG_HTML option to EPUB parser.Tor Andersson
2018-02-08Fix 698991: The pdf_is_stream call is too generous.Tor Andersson
It should only return true for indirect references that are actually streams, not just any array/dict that is contained in a stream object.
2018-02-08Fix 698918: Use encryption when doing initial object formatting to count the ↵Tor Andersson
length.