summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2017-01-09Fix potential buffer overrun when decoding UTF-16 in XML parser.Tor Andersson
2017-01-09Add fz_terminate_buffer function.Tor Andersson
Non-destructively zero terminate a fz_buffer for use as a C string.
2016-12-27Bug 697455: Make JPX support optional via configuration flag.Tor Andersson
Set FZ_ENABLE_JPX=0 in XCFLAGS or include/mupdf/fitz/config.h to disable support for JPX at compile time. Be aware that this may break support for PDF 1.5 and later files that need JPEG2000 support.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-27Common code to ensure we only premultiply pixmaps with additive colors.Tor Andersson
2016-12-19Add MuOfficeLib functions to safely run native MuPDF ops.Robin Watts
It seems likely that we'll want people to able to use the MuPDF C API as well as the MuOfficeLib helper lib. We therefore need a way to get fz_context and fz_document values out of MuOfficeLib. Potential problems exist with people calling MuPDF C API functions using an fz_context that is in use elsewhere. Similarly, if an fz_document is in use in a background thread (for instance in a page render), we need to ensure that it can't be used at the same time elsewhere. We therefore provide MuOffice{Lib,Doc,Page}_run functions that allow this to happen safely. This largely insulates callers from the complexities of having to clone contexts etc, it safely ensures that exceptions cannot be propogated beyond the topmost fz_try/ fz_catch, and it ensures that appropriate locking is used.
2016-12-16Bug 697412: When repairing, forget the previous xref.Tor Andersson
2016-12-16Move page size and margins into fz_html struct.Tor Andersson
2016-12-14jpx: Delay determining if colorspace is indexed.Sebastian Rasmussen
2016-12-14Let pixmap colorspace conversion create new pixmap.Sebastian Rasmussen
This moves dropping the converted pixmap into fz_convert_pixmap(), which relieves every caller from doing so. Moreover resolution, position and interpolation are kept.
2016-12-14Create a pixmap color converter.Sebastian Rasmussen
This is in preparation for moving fz_convert_pixmap() out of colorspace.c.
2016-12-12Fix API comment.Robin Watts
2016-12-12Make more pdf functions private.Tor Andersson
2016-12-12PDF Portfolio support.Robin Watts
New PDF Portfolio manipulation API. Simple mutool 'portfolio' tool for listing/extracting/embedding files.
2016-12-12Add fz_remove to cope with utf-8 file names on windows.Tor Andersson
2016-12-12Change pdf_dict_put_val to pdf_dict_put_val_null.Tor Andersson
It's only used to 'fix' duff indirect references when cleaning PDF files. Writing general values into dictionaries should be done by key, not by internal index.
2016-12-02Bump version number.Tor Andersson
2016-11-23Add toggle to enable/disable document styles.Tor Andersson
2016-11-23Update UCDN database to Unicode 9.0.0.Sebastian Rasmussen
2016-11-23Add TOFU_CJK_LANG section to config.h.Tor Andersson
2016-11-23Convert mudraw and muraster to use mu-threads.Robin Watts
Saves having the same threading code repeatedly.
2016-11-23First version of mu-office-lib.Robin Watts
2016-11-23Move threading macros out into a mu-threads helper file.Robin Watts
2016-11-22Remove second declaration of fz_new_annot().Sebastian Rasmussen
It is already declared in include/mupdf/fitz/annotation.h, and it makes more sense to have it there.
2016-11-22Fix const compiler warning.Sebastian Rasmussen
2016-11-16pdf: Add x and y output parameters to pdf_lookup_anchor.Tor Andersson
2016-11-16pdf: Add 'compressed/raw' flag to pdf_add_stream.Tor Andersson
Also expose the argument to JS and JNI.
2016-11-14Continued Layer API work.Robin Watts
Hide pdf_is_hidden_ocg from the public interface. Ensure that RBGroups and Order properly fall back to the default entries if they are missing in the OCCDs. Add pdf_set_layer_config_as_default. This sets the default layer config to be current one. This destroys the current default dictionary, but we leave the other configs intact.
2016-11-14More API tweaks.Robin Watts
Move internal functions from public to private headers.
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-11-14Bug 697336: Be more explicit about where to edit config.hRobin Watts
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-11-14Add optional 'object' argument to pdf_add_stream.Tor Andersson
2016-11-11API improvements.Robin Watts
Add missing API comments. Move private definitions to implementation headers or C files. Move internal functions to implementation headers.
2016-11-11Add pdf_layer configuration API.Robin Watts
Add API to: * allow enumeration of layer configs (OCCDs) within PDF files. * allow selection of layer configs. * allow enumeration of the "UI" (or "Human readable") form of layer configs. * allow selection/toggling of entries in the UI.
2016-11-10Add minimum line width configuration option.Robin Watts
2016-11-08Fix android warnings.Tor Andersson
2016-11-07Bug 697241: Fix blending through clips.Robin Watts
Non rectangular clips are currently handled by rendering to a 'isolated' background, and then plotting that through a mask. This runs into problems when the rendering needs to use non standard blend modes that need to access the background colors. Instead, copy the background to the new pixmap, render to that then plot that through the mask. This simplifies the painting code, because we now never have mismatched source and destination alphas.
2016-10-28epub: Add links to XHTML and FB2 formats.Tor Andersson
2016-10-28epub: Add 'id' attribute to all HTML elements, not just <a> tags.Tor Andersson
Allows id anchoring to block elements as well as inline elements. Fix for bug 697123.
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
2016-10-26Bump version number to 1.10.Tor Andersson
2016-10-26Introduce options for structured text.Sebastian Rasmussen
2016-10-24Fix cluster timeouts with test file.Robin Watts
tests_private/pdf/sumatra/1297_-_interpolate_at_lower_resolutions.pdf times out in the cluster. This is due to us having empty t3 glyphs defined that define d1 rectangles that are wildly different to the default font bbox. Add code to spot that t3 glyphs are empty, and to use a tiny font bbox for them. (It might be nicer to drop the empty display lists, but then this produces knock on problems further on, where non-existent display lists lead to NULL pixmaps, which lead to us think that renders failed etc).
2016-10-21Clean up FZ_IMAGE_XXX enums and purge unused FZ_IMAGE_JBIG2.Tor Andersson
2016-10-19Move headers to make svg_document an internal type.Sebastian Rasmussen
2016-10-19Move headers to make xps_document an internal type.Sebastian Rasmussen
2016-10-19Make document handler declarations internal.Sebastian Rasmussen
2016-10-18Remove unused luminosity.Sebastian Rasmussen
2016-10-14epub: Add hyperlinks.Tor Andersson