summaryrefslogtreecommitdiff
path: root/source/tools
AgeCommit message (Collapse)Author
2016-04-27Fix 696649: remove fz_rethrow_message calls.Tor Andersson
2016-04-26Mudraw: Set AA level in context before cloning context.Robin Watts
When we clone the context, we copy the AA levels from the base context into the cloned context. This means that we must set the AA levels in the base context BEFORE cloning if we want them to be the same everywhere (or set them explicitly in all contexts).
2016-04-26Allow text/graphics aa levels to be controlled separately.Robin Watts
2016-04-26murun: Don't use 'mupdf' object; make constructors and functions global.Tor Andersson
It's a lot of extra typing to prefix everything with "mupdf.".
2016-04-26murun: Print result of evaluating a line in interactive mode.Tor Andersson
2016-04-26murun: Support 'lineCap' to set start, end and dash caps together.Tor Andersson
2016-04-26murun: Automatically convert object argument to obj.writeObject().Tor Andersson
2016-04-26murun: Add wmode and bidi-level arguments to text walker callback.Tor Andersson
2016-04-26Change order of arguments to pdf_add_page etc.Tor Andersson
Resources are defined before they are used; so it's only logical to have the resource dictionary before the content buffer in the argument list.
2016-04-26pdfmerge: Clean up error messages and fix try/catch variable error.Tor Andersson
2016-04-26Add 'mutool convert' and new document writer interface.Tor Andersson
Only supports CBZ writing for now. Also add a zip file writer.
2016-04-22pdf: Remember to drop objects inserted into dicts.Sebastian Rasmussen
2016-04-21Fix potential segfault when mapping JS strings to PDF.Tor Andersson
2016-04-19Add mutool mergeMichael Vrhel
This commit adds a page merging tool. The tool demonstrates the use of object grafting. The object grafting function recursively goes through the object to add all referenced objects. A map is maintained to ensure that objects that have already been copied are not copied again.
2016-04-05Add 'Low Memory' mode to Mutool draw.Robin Watts
If used, PDF objects are cleared at the end of each page, and the store size is set to 1 byte, avoiding the caching of images. This trades repeated decoding of images/reading of file objects for memory usage. The purpose of this is to enable measurements to be made on the minimum possible memory level.
2016-04-05Add threaded operation to mudraw.Robin Watts
2016-04-05Clean up bidi enum names.Tor Andersson
And use the same enum for both the internal bidi code and the layout code.
2016-03-31Initialize pdf write options to zero in pdfclean.Tor Andersson
2016-03-31Initialize disabled document writing flags to zeroSebastian Rasmussen
Also remove redundant assignments. Fixes http://bugs.ghostscript.com/show_bug.cgi?id=695968
2016-03-25Fix PS output banded mode operation.Robin Watts
2016-03-25Refactor pcl output to work in bands.Robin Watts
2016-03-25Tweak the PCL page size handling/options.Robin Watts
Introduce a 'generic' PCL setting (basically ljet4 with custom page sizes for now). Ensure we send explicit sizes before the custom page sizes, and don't use Ricoh page sizes unless we are allowed to.
2016-03-25Add 24 bit RGB PCL output mode.Robin Watts
Output uses adaptive compression mode.
2016-03-23js: Create 'argv' global containing arguments passed to mutool run.Tor Andersson
2016-03-23js: Add some low level document object access.Tor Andersson
pdf.createObject() will create a new (blank) object and return an indirect reference to it. This wraps pdf_create_object. ref.writeObject(obj) will update the object pointed to. This wraps pdf_update_object.
2016-03-23Compile embedded fonts in separate C files.Tor Andersson
Also change unsigned char into const char for embedded data.
2016-03-23Mudraw: Enable banded operation for pkm.Robin Watts
All the groundwork was in place for this, I'd just forgotten to actually enable it.
2016-03-22Add Google Perf Tools build.Robin Watts
"make build=gperf" will now build and link the google perf tools library into mutool. When mutool is then run, a mutool.prof file is dropped into the current directory that can be analysed.
2016-03-21Mudraw: Avoid reopening output files.Robin Watts
It makes a strangely large difference in timings if we close and reopen the output file for every page. Only close and reopen the output file for each page if we really need to.
2016-03-21Add .ps output to mutool draw.Robin Watts
Simple PS wrapped images with flate compression.
2016-03-21Fix compiler warnings in murun.c and pdf-js.c by tagging rethrow as noreturn.Tor Andersson
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-15mudraw: Fix leak of fz_output in stdout case.Robin Watts
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-14mudraw: Print summary information to stderr.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-14Take pdf_obj argument to pdf_is_stream.Tor Andersson
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).