summaryrefslogtreecommitdiff
path: root/source/tools/pdfportfolio.c
AgeCommit message (Collapse)Author
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-03-22Use pdf_add_new_dict family of functions.Tor Andersson
2018-03-16Add simple fonts with 8-bit greek and cyrillic encodings.Tor Andersson
Use KOI8-U for Cyrillic, and ISO 8859-7 for Greek. Use with 'mutool create' using an extra argument to the %%Font directive: %%Font TmRmC Times-Roman Cyrillic BT /TmRmC 16 Tf 10 10 Td <fa c4 d2 c1 d7 d3 d4 d7 d5 ca d4 c5 21> Tj ET The alternatives are "Latin", "Greek", and "Cyrillic".
2017-11-01Use int64_t for public file API offsets.Tor Andersson
Don't mess with conditional compilation with LARGEFILE -- always expose 64-bit file offsets in our public API.
2017-10-12Fix reference counting error in pdf_add_page.Tor Andersson
2017-06-22Use unsigned char arrays in hexdumped data.Tor Andersson
2017-06-06Declare functions without arguments as taking void.Sebastian Rasmussen
2017-04-27Include required system headers.Tor Andersson
2017-04-13Clean up mutool usage messages.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.