From 4355fda4abe7e7022e3e258c276ccba9e4713d91 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 27 Apr 2016 14:14:52 +0200 Subject: Tweak pdf-write option handling. The handling of not-decompressing images/fonts was geared towards pdfclean usage; but now that we can create new PDF files, it makes more sense to ask for images and fonts to be compressed, rather than asking for them not to be decompressed with quirky interaction with the 'expand' and 'deflate' flags. If -f or -i are set, we will never decompress images, and we will compress them if they are uncompressed. If -d is set, we will first decompress all streams (module -f or -i). If -z is set, we will then compress all uncompressed streams. --- docs/mutool/examples/pdf-merge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/mutool/examples/pdf-merge.js') diff --git a/docs/mutool/examples/pdf-merge.js b/docs/mutool/examples/pdf-merge.js index a468738a..6f5d4692 100644 --- a/docs/mutool/examples/pdf-merge.js +++ b/docs/mutool/examples/pdf-merge.js @@ -57,7 +57,7 @@ function pdfmerge() { srcDoc = new PDFDocument(argv[i]) copyAllPages(dstDoc, srcDoc) } - dstDoc.save(argv[1]) + dstDoc.save(argv[1], "z") } if (argv.length < 3) -- cgit v1.2.3