summaryrefslogtreecommitdiff
path: root/source/tools
AgeCommit message (Collapse)Author
2017-05-31Avoid double literals causing casts to float.Sebastian Rasmussen
2017-05-25Replace broken FZ_IGNORE_IMAGE hints with other mechanisms.Tor Andersson
Add an option to the structured text device to preserve images. If the PDF processor does not have ops to process images, then skip loading them in the interpreter if possible. If the device does not have any image callbacks, then don't set the image processing ops in the run device. This accomplishes the same effect as the device hints were intended to do, but without needing to expose them to the PDF interpreter which may not even have a device since we now have multiple PDF op processors.
2017-05-19Fix 697898: Typo in iterator in JS Page.getLinks().Tor Andersson
2017-05-08js: Propagate errors from JS devices to fitz.Tor Andersson
2017-05-03Fix windows builds: windows doesn't have sys/time.hRobin Watts
A nicer fix wouldn't require this #ifdeffery everywhere. Maybe later.
2017-04-27Move fz_outline and pdf_xref debug printing to pdfshow.cTor Andersson
That's where it's actually being used.
2017-04-27Include required system headers.Tor Andersson
2017-04-27Use feature defines in tools.Tor Andersson
If DISABLE_MUTHREADS is set, don't include the thread helper library. If FZ_ENABLE_PDF is 0, don't include mupdf/pdf.h.
2017-04-27Rename FMT_zu to FZ_FMT_zu.Tor Andersson
Don't use FMT_zu macro for fz_throw/fz_warn, since we can portably handle '%zu' in our own printf formatting.
2017-04-20js: Push annotation error handling down to library.Sebastian Rasmussen
This makes is possible for JNI code to depend on the library for error handling.
2017-04-20js: Add set/get of interior color of annotations.Sebastian Rasmussen
2017-04-14js: Avoid duplicating cleanup code.Sebastian Rasmussen
2017-04-14js: Deleting an annotation has no return value.Sebastian Rasmussen
2017-04-13Clean up mutool usage messages.Tor Andersson
2017-03-31Fix typo in PDFAnnotation.setQuadPoints.Tor Andersson
2017-03-31Remove excess newline in mutool draw output.Robin Watts
2017-03-28Rejig fz_new_device to be fz_new_derived_device.Robin Watts
In keeping with the rest of the code.
2017-03-27Tweak document_writer - don't pass dev back in.Robin Watts
It seems odd for a document writer to pass a device pointer out, and then require it to be passed back in. Hide that in the public API.
2017-03-23Add generic pixmap document writer.Tor Andersson
Allow mutool convert to output all image formats we can write. Add sanity checks for pbm and pkm writers.
2017-03-22Fix threaded muraster build.Robin Watts
2017-03-22Rename fz_putc/puts/printf to fz_write_*.Tor Andersson
Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation.
2017-03-20Fix threaded mutool build breakage.Robin Watts
2017-03-15Silence warning.Tor Andersson
2017-03-14Update PWG writer to be a band_writer.Robin Watts
Update mutool to call it.
2017-03-14Recast TGA output as a band writer.Robin Watts
Annoyingly TGA requires lines to be written from bottom to top, so require callers to flip the image. Also fix TGA to cope with alpha or not. Update mutool draw to use band writer interface for TGA.
2017-03-11Simplify fz_band_writer API.Robin Watts
Remove needless parameter passing in fz_band_writer API. We always know the bandstart, so why make the caller keep track of it and pass it in? Similarly, we know when we hit the end of the page, so why require us to trigger the trailer writing manually?
2017-02-21Fix typo in ffi_PDFAnnotation_setColor.Tor Andersson
2017-02-21The 'count' array in pdf_annot_set_ink_list takes number of points.Tor Andersson
Not number of coordinates.
2017-02-20Add no-reuse-images option to SVG device.Tor Andersson
Also add explicit viewBox and width/height to image symbol and use elements, to work around a strange clipping/image scaling issue with firefox.
2017-02-20Add svg writer.Tor Andersson
Now mutool convert can write SVG documents.
2017-02-14Make svg text output format a runtime option.Tor Andersson
2017-02-06Be stricter when parsing OCG selections in mudraw.Sebastian Rasmussen
This avoids allowing 0,z as a valid selection.
2017-02-04Bug 697514: Write SVG output to stdout if no output specified.Sebastian Rasmussen
2017-01-31muraster: When outputting to /dev/null, still free bitmaps.Robin Watts
This was leading to memory leaks on the dev board.
2017-01-17Fix typos.Sebastian Rasmussen
2016-12-27js: Fix allocator callbacks so they don't throw fitz exceptions.Tor Andersson
Valgrind doesn't know realloc(p, 0) is equivalent to free(p), so unfortunately we can't reduce all calls to just realloc().
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-19Fix broken mutool draw SVG outputRobin Watts
SVG output in mutool produces a file per page; attempting to reopen the same file each time was tripping the new fz_remove call. Now only open a page at a time.
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-14Plug pixmap leak when fz_convert_pixmap() throws.Sebastian Rasmussen
2016-12-14Fix document leak when mutool info throws.Sebastian Rasmussen
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-12Fix default output options in pdf create.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-11-23Try drawing all pages in a document in mudraw if ignoring errors.Sebastian Rasmussen
2016-11-23js: Add setUserCSS function.Tor Andersson
2016-11-23Add 'X' option to disable document styles.Tor Andersson
2016-11-23Convert mudraw and muraster to use mu-threads.Robin Watts
Saves having the same threading code repeatedly.