summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-18Add 1bpp cmyk output to mutool draw.Robin Watts
A request for a .pkm file will produce the same as a pamcmyk4 does on ghostscript. Ghostscripts pkmraw device does a 1bpp cmyk and then converts to rgb as writing to ppm, but that seems silly.
2016-03-16mutool draw: Add banded mode output for pbm files.Robin Watts
2016-03-16Avoid unused var warnings in Memento ref counting code.Robin Watts
2016-03-16glyph plotter; Use repeated inclusion of headerRobin Watts
To avoid having to duplicate a fairly large block of code several times, use repeated inclusion of a header with some macros to generate optimised glyph plotters.
2016-03-16Add optimised CMYK plotters.Robin Watts
We have optimised plotters for 2 and 4 components (i.e. greyscale and rgb). Add equivalent ones for CMYK.
2016-03-16Spot when we are fz_outputting to /dev/null or nul:Robin Watts
2016-03-16Speed pam writing.Robin Watts
2016-03-16Bug 696648: Send -sm output to stderr.Robin Watts
Thanks to Marcos for spotting the missing case.
2016-03-16Minimize number of extra braces in the try/catch macros.Tor Andersson
2016-03-15Tweak fz_try/catch to fix overflow case.Robin Watts
In the current code, when we hit the fz_try(), we check to see if we are about to overflow the exception stack. If we are, we throw. This does NOT throw to the fz_catch following the try, but rather to the enclosing fz_always/fz_catch blocks. This can cause leaks, as it's very hard to code correctly. It would be a far nicer behaviour to have a failure in fz_try() cause us to throw to the immediately following fz_always/fz_catch. This commit achieves that.
2016-03-15Avoid shadowing 'stm' variable.Robin Watts
This leads to a leak.
2016-03-15Memento: Track fz_streams.Robin Watts
2016-03-15Memento: Fix specification of -ldl in memento builds.Robin Watts
Use LIBS, not LDFLAGS to ensure that the lib appears at the end of the link line.
2016-03-15Memento: Avoid warnings building without HAVE_LIBDLRobin Watts
2016-03-15Fix leak in PDF device.Robin Watts
2016-03-15Make PDF objects ref changes memento-trackable.Robin Watts
2016-03-15Memento: Rename memento 'globals' to 'memento'.Robin Watts
Neatness.
2016-03-15Make all ref changes on storable items Memento trackable.Robin Watts
2016-03-15Memento: Add Memento_{takeRef,dropRef,reference} functions.Robin Watts
These work with MEMENTO_DETAILS to allow us to store the events where reference counts change.
2016-03-15Fix leak in PDF inline image handling.Robin Watts
2016-03-15mudraw: Fix leak of fz_output in stdout case.Robin Watts
2016-03-15Fix mode2compress for PCL.Robin Watts
Previously this would overrun buffers in the pathological case (ABBABBABB...). We now only break from literals to runs for a run of at least 3 (except at the start).
2016-03-15Fix leak/missing error cleanup in halftoning code.Robin Watts
Ensure we free buffers if we fail to malloc, and that we drop the temporary buffer at the end of halftoning a pixmap.
2016-03-15Mutool draw: Simplify output handling code.Robin Watts
At the moment we have the output file being opened in several different places, leading to several different places having to cope with the '-' handling. Simplify the code so that files are only opened in 1 place.
2016-03-14Remove begin_page and end_page device calls.Tor Andersson
To be moved into a new document writer interface later.
2016-03-14Make pdf_is_stream work on loaded stream dictionary objects as well.Tor Andersson
2016-03-14Fix 696507: Clamp correct values in fz_invert_pixmap_rect.Tor Andersson
The loop is exclusive, but the clamp check was as if it were inclusive.
2016-03-14html: Use pair break table from UAX #14 to add soft breaks.Tor Andersson
Note: does not handle the case where certain classes of characters prohibit breaking at spaces between them.
2016-03-14ucdn: Add support for UAX#14 linebreaking classes.Sebastian Rasmussen
2016-03-14xml: Fix linebreak before closing tag test.Tor Andersson
2016-03-14Build java on 32-bit linux.Tor Andersson
2016-03-14Add C++ extern "C" guards in public header files.Tor Andersson
2016-03-14mudraw: Print summary information to stderr.Tor Andersson
2016-03-14Make release build the default.Tor Andersson
2016-03-14js: Document password and metadata.Tor Andersson
2016-03-14js: Add DisplayList and DisplayListDevice.Tor Andersson
2016-03-14js: Fix some reference counting errors.Tor Andersson
2016-03-14js: Add upcasting to fz_document from pdf_document.Tor Andersson
2016-03-14js: More object accessor functions.Tor Andersson
2016-03-14js: Add pdf.countPages and pdf.findPage.Tor Andersson
2016-03-14js: Add buffer.save() to write contents of buffer to file.Tor Andersson
2016-03-14js: Add obj.writeStream and writeRawStream to update stream contents.Tor Andersson
2016-03-14js: Add obj.readStream and obj.readRawStream.Tor Andersson
2016-03-14js: Add PDFObject.forEach(f) to iterate over dictionaries and arrays.Tor Andersson
2016-03-14Fix TextWalker.showGlyph signature string.Tor Andersson
2016-03-14Take pdf_obj argument to pdf_is_stream.Tor Andersson
2016-03-11Bug 696634: Android: Allow filenames including hash.Robin Watts
We were converting from a File to a filename then to a Uri using Uri.parse, but Uri.parse has problems with hash marks. Instead convert direct from File to Uri.
2016-03-11Fix various warnings.Robin Watts
"Defined but not used" and "Set but not used" as seen with ndk-build.
2016-03-11Implement fz_text_language support functions.Robin Watts
Add code to convert to and from fz_text_language codes from ISO 639 language strings. No validation is carried out.
2016-03-11Rejig Bidirectional and Text code.Robin Watts
We move to using bidirectional "levels" throughout. This should give us better behaviour vis-a-vis nested l2r/l2r text. This also allows us to carry xps levels throughout with no loss of information. This also avoids the need to special case numbers. We accordingly carry more information into fz_text. As well as wmode, also hold additional details about the text spans. We now include the directionality of the bidi level text (either as derived from bidi code, or from the original document (e.g. xps)), the directionality of text (as specified in the original document (e.g. html)), and the language of the text (if specified in the original document).