diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-04-27 14:14:52 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-04-27 17:01:06 +0200 |
commit | 4355fda4abe7e7022e3e258c276ccba9e4713d91 (patch) | |
tree | 7a21c614bad51f8157c56db60d658f77ad6273b6 /docs/mutool/examples/pdf-create.js | |
parent | a1c86cfcea30b18734488935c636a5d7198b3983 (diff) | |
download | mupdf-4355fda4abe7e7022e3e258c276ccba9e4713d91.tar.xz |
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.
Diffstat (limited to 'docs/mutool/examples/pdf-create.js')
-rw-r--r-- | docs/mutool/examples/pdf-create.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/mutool/examples/pdf-create.js b/docs/mutool/examples/pdf-create.js index 38c193a3..131e72b3 100644 --- a/docs/mutool/examples/pdf-create.js +++ b/docs/mutool/examples/pdf-create.js @@ -32,4 +32,4 @@ var page = pdf.addPage([0,0,300,350], 0, resources, contents) pdf.insertPage(-1, page) // Save the document to file. -pdf.save("out.pdf") +pdf.save("out.pdf", "paif") |