summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-12-14jpx: Create openjpeg decoder state.Sebastian Rasmussen
This allows for communicating the colorspace without using a pixmap.
2016-12-14jpx: Only do YCC-to-RGB conversion if decoding image samples.Sebastian Rasmussen
2016-12-14jpx: Optimize sample writing function.Sebastian Rasmussen
2016-12-14jpx: Delay reading metadata until parsing samples where possible.Sebastian Rasmussen
2016-12-14jpx: Only compute signed offsets once.Sebastian Rasmussen
2016-12-14jpx: Use local variables instead of repeatedly dereferencing state.Sebastian Rasmussen
2016-12-14jpx: Share YCC-to-RGB conversion for luratech/openjpeg decoders.Sebastian Rasmussen
2016-12-14jpx: Move state which is not shared among functions to decoder stack.Sebastian Rasmussen
In the case of fz_context *, use that for the allocator callbacks.
2016-12-14jpx: Use macro to check for palette.Sebastian Rasmussen
2016-12-14jpx: Max components is known, so avoid allocating arrays.Sebastian Rasmussen
2016-12-14jpx: Use fz_context directly, don't wrap it in state.Sebastian Rasmussen
2016-12-14jpx: Reuse structs for luratech/openjpeg decoders.Sebastian Rasmussen
2016-12-14jpx: Remove unused struct.Sebastian Rasmussen
2016-12-14jpx: Plug pixmap leak in case of error during decoding.Sebastian Rasmussen
2016-12-14Split out jpx handling in separate function.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-14Always create colorless pixmaps with alpha.Sebastian Rasmussen
2016-12-14Plug pixmap leak when fz_convert_pixmap() throws.Sebastian Rasmussen
2016-12-14Fix document leak when mutool info throws.Sebastian Rasmussen
2016-12-14Bug 697400: Mark visited objects when counting OCG layer entries.Sebastian Rasmussen
2016-12-14Bug 697392: Close device before dropping it.Sebastian Rasmussen
2016-12-13Update JBig2Dec to latest.Robin Watts
2016-12-12Fix API comment.Robin Watts
2016-12-12Make more pdf functions private.Tor Andersson
2016-12-12Tweak pdf portfolio: automatically use incremental writing.Tor Andersson
Windows cannot remove open files, so we can't save non-incrementally to the same file name as the open document. Force incremental saves if the input and output file names are the same. NOTE: We will also create corrupt files if saving a new document incrementally, so take care not to turn on incremental saves if we have created a new blank document.
2016-12-12Tweak pdf portfolio to create blank portfolios and add multiple entries.Tor Andersson
Will overwrite input file unless a separate output file is specified.
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-12Ensure we don't clobber files in fz_new_output_with_path.Tor Andersson
When saving a PDF to the same file name as the one that is open, we risk clobbering it by truncating the source file. Remove the old file first! Removing an open file will not work on windows, but there we will throw an EACCESS error rather than clobber the file!
2016-12-12Fix default output options in pdf create.Tor Andersson
2016-12-12pdf: Fix bug 697431.Tor Andersson
We were incorrectly calling pdf_update_object to try to make sure that an edited array was going to be saved during incremental saves. This call was both buggy and unnecessary.
2016-12-12pdf: Add missing prepare_object_for_alteration calls.Tor Andersson
pdf_array_delete and pdf_dict_put_val_null weren't calling this function.
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-12Update MuJS.Tor Andersson
2016-12-08Update pdf_array_put to allow extension.Robin Watts
Previously, attempting to put an object beyond the end of an array would throw an error. Here we update the code to allow objects to be placed *exactly* at the end (i.e. to extend the length by 1). Update js use of pdf_array_put.
2016-12-08Fix incorrect recursive object marking.Robin Watts
We use pdf_mark_obj/pdf_unmark_obj to catch cycles when traversing PDF structures. In some cases we were failing to actually test the return code, making it pointless.
2016-12-02Bump version number.Tor Andersson
2016-12-02Fix iOS build.Tor Andersson
2016-12-02iOS: Let Xcode 8.1 perform it's recommended updatesJoseph Heenan
Only really important change is updating the deployment target to iOS 8, as earlier versions aren't supported by Xcode 8.1.
2016-12-02iOS: Build fix for fz_resolve_link API changeJoseph Heenan
2016-12-02iOS: Fix for xcode build after cmap re-arrangementJoseph Heenan
Just check for one of the new filenames
2016-11-23Add ptrdiff_t formatting support to fz_vsnprintf().Sebastian Rasmussen
2016-11-23fz_vsnprintf() can simply use bitwidth of given types.Sebastian Rasmussen
2016-11-23Fix object leak in pdf_array_put_drop() and pdf_dict_put_val_drop().Sebastian Rasmussen
2016-11-23jxr: Plug pixmap leak upon error converting CMYK image to RGB.Sebastian Rasmussen
2016-11-23Try drawing all pages in a document in mudraw if ignoring errors.Sebastian Rasmussen
2016-11-23Fix mu-threads build on linux.Tor Andersson
2016-11-23js: Add setUserCSS function.Tor Andersson
2016-11-23Add 'X' option to disable document styles.Tor Andersson