summaryrefslogtreecommitdiff
path: root/source/tools
AgeCommit message (Collapse)Author
2018-11-14Remove TARGA output support.HEADmasterTor Andersson
It is not very useful.
2018-11-13Bug 699217: Show whether outline items are open in 'mutool show outline'.Tor Andersson
A '+' prefix indicates an open branch. A '-' prefix indicates a closed branch. A ' ' prefix indicates a leaf node.
2018-11-13Use fz_image.imagemask field when adding PDF image resources.Tor Andersson
Don't pass the information as a separate argument.
2018-11-13js: Add PDFDocument.loadImage() function.Tor Andersson
2018-11-13js: Use Image.toPixmap arguments.Tor Andersson
2018-11-12Remove bitrotted and not working PDF portfolio code.Tor Andersson
Extracting embedded files can be trivially done with 'mutool show' or a simple mutool run script. The portfolio creation code is incomplete, and would require a lot of work and testing with Adobe in order to be useful.
2018-11-12Fix 697728: Use UTF-8 strings in PDF portfolio functions.Tor Andersson
2018-11-12Remove stray js_endtry in obj.asString().Tor Andersson
2018-11-08Fix 699310: Add -q option to mudraw to suppress 'page %d' messages.Tor Andersson
Useful if printing text or traces to stdout. Be quiet automatically if printing to stdout.
2018-11-07Fix double header output in muraster.Robin Watts
Also fiddle the #ifdeffery to get sane defaults.
2018-11-07Fix 700053: Add 'decrypt' option to pdf_save_document.Tor Andersson
This option is exposed as the -D flag to mutool clean. Allow saving a document without encryption. The next step is to allow saving a document with new encryption, but this may require a fair amount of rejigging since the PDF write code to keep separate doc->crypt objects for decryption and encryption.
2018-10-26Drop documents while exception progressing files in mutool merge.Sebastian Rasmussen
2018-10-25Rename NO_ICC to FZ_ENABLE_ICC=0|1 to match other config.h options.Tor Andersson
2018-10-24Drop page upon exception verifying page signatures.Sebastian Rasmussen
2018-10-23Drop indirect reference upon exception.Sebastian Rasmussen
2018-10-23fz_end_page() may throw exception, handle that and free page.Sebastian Rasmussen
2018-10-23Drop state and context upon exception.Sebastian Rasmussen
2018-10-23Reformat list of constants.Tor Andersson
2018-10-23Drop the page dictionary upon exception in mutool merge.Sebastian Rasmussen
2018-10-23Remove extra blank lines.Tor Andersson
2018-10-23Drop reference upon exception in mutool extract.Sebastian Rasmussen
2018-10-23murun: Fix cleanup upon exeception when converting PDF array/dict to JS.Tor Andersson
2018-10-23Allow SVG output to keep ID numbers unique across pages.Tor Andersson
This is required if embedding multiple SVG documents in a web page, for example.
2018-10-12Drop display list upon exception.Sebastian Rasmussen
2018-10-12Drop resources in mudraw upon exception.Sebastian Rasmussen
2018-09-21Add fz_lookup_cjk_font_by_name to create builtin CJK fonts.Tor Andersson
2018-09-21Regularize language and script names.Tor Andersson
Drop the unused 'serif' argument to the CJK lookup functions. Use the BCP 47 names for CJK scripts and languages: zh-Hant for traditional Chinese, zh-Hans for simplified Chinese, ja for Japanese, ko for Korean. The lookup function also allows commonly used language+country codes: zh-TW and zh-HK for traditional Chinese, zh-CN for simplified Chinese.
2018-09-20Be consistent in use of #if FZ_ENABLE_...Robin Watts
Using #ifdef FZ_ENABLE_ means we build code in, even if we have defined FZ_ENABLE_WHATEVER to be 0 (as we do in config.h).
2018-09-05Use colorspace type enum instead of magic profile names.Tor Andersson
2018-09-05mutool run: Pass script path and arguments as scriptPath and scriptArgs.Tor Andersson
2018-09-04Check for missing filename when saving gproof.Sebastian Rasmussen
2018-08-14Fix leak of PDF object in mutool show.Sebastian Rasmussen
2018-08-10Rejig pdf_update_page and pdf_update_annot.Tor Andersson
The intent is for a user to iterate over the annotations on a page calling pdf_update_annot for each one. If this function returns true, then the annotation has changed since the last time it was called, and the user needs to re-render. pdf_update_page is a simple loop over the annotations on a page, for use if you only care about page level granularity. Users should no longer look at or change the pdf_annot.has_new_ap field.
2018-07-06Fix muraster and mu-office-lib.Robin Watts
These got broken during the fz_rect/fz_matrix pass-by-value changes.
2018-07-05Pass rects by value: device and document interface.Tor Andersson
2018-07-05Pass matrices by value: device and document interface.Tor Andersson
2018-07-05Pass rect and matrix by value in geometry functions.Tor Andersson
Several things irk me about passing values as const pointers: * They can be NULL, which is not a valid value. * They require explicit temporary variables for storage. * They don't compose easily in a legible manner, requiring weird pointer passing semantics where the variable being assigned is hidden as an argument in the innermost function call. * We can't change the value through the pointer, requiring yet more local variables to hold copies of the input value. In the device interface where we pass a matrix to a function, we often find ourselves making a local copy of the matrix so we can concatenate other transforms to it. This copying is a lot of unnecessary busywork that I hope to eventually avoid by laying the groundwork with this commit. This is a rather large API change, so I apologize for the inconvenience, but I hope the end result and gain in legibility will be worth the pain.
2018-07-04Rename pdf_get_annot_contents to pdf_annot_contents.Tor Andersson
Since the function no longer returns ownership of the string, use the common naming convention.
2018-06-22Use fz_quad type in structured text and selection/highlighting.Tor Andersson
2018-06-22Keep copy of decoded utf8 text string in pdf_obj.Tor Andersson
Removes the need to alloc/free text strings in the API, allowing for simple functions like pdf_dict_get_text_string.
2018-06-02mutool show: Add support for wildcards in path syntax.Tor Andersson
Example: mutool show $PDF pages/*/Resources/Fonts/*/Subtype
2018-05-17mutool extract: Remove spurious 'break' statement and fix double free.Tor Andersson
2018-05-16Don't use pdf_load_object in pdfextract.cTor Andersson
2018-05-16js: Add Shade.bound function and bbox device example.Tor Andersson
2018-05-09Fix windows: strsep is missing on MSVC, use fz_strsep instead.Tor Andersson
2018-05-03Add selector syntax to 'mutool show'.Tor Andersson
2018-05-03Tweak 'mutool show ... grep' output.Tor Andersson
2018-05-02Improve error handling in murun shell and update MuJS submodule.Tor Andersson
2018-04-27Use pdf_dict_get_int, etc.Tor Andersson
2018-04-25Don't use WMode as part of CJK font lookup.Tor Andersson
Return TTC subfont index from fz_lookup_noto_font.