comparison mupdf-source/docs/reference/common/pdf-write-options.md @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # PDF Write Options
2
3 These are the common options to functions that write PDF files.
4
5 decompress
6 : Decompress all streams (except compress-fonts/images)
7
8 compress
9 : Compress all streams. Bi-level images are compressed with CCITT Fax and generic data is compressed with flate.
10
11 compress=flate
12 : Compress streams with Flate (default).
13
14 compress=brotli
15 : Compress streams with Brotli (WARNING: this is a proposed PDF feature)
16
17 compress-fonts
18 : Compress embedded fonts
19
20 compress-images
21 : Compress images
22
23 compress-effort=0|percentage
24 : Effort spent compressing, 0 is default, 100 is max effort
25
26 ascii
27 : ASCII hex encode binary streams
28
29 pretty
30 : Pretty-print objects with indentation
31
32 labels
33 : Print object labels
34
35 linearize
36 : Optimize for web browsers (no longer supported!)
37
38 clean
39 : Pretty-print graphics commands in content streams
40
41 sanitize
42 : Sanitize graphics commands in content streams
43
44 garbage
45 : Garbage collect unused objects
46
47 garbage=compact
48 : Garbage collect unsued objects, and compact cross reference table
49
50 garbage=deduplicate
51 : Garbage collec unused objects, compact cross reference tables, and remove duplicate objects
52
53 incremental
54 : Write changes as incremental update
55
56 objstms
57 : Use object streams and cross reference streams
58
59 appearance=yes|all
60 : Synthesize just missing, or all, annotation/widget appearance streams
61
62 continue-on-error
63 : Continue saving the document even if there is an error
64
65 decrypt
66 : Write unencrypted document
67
68 encrypt=rc4-40|rc4-128|aes-128|aes-256
69 : Write encrypted document
70
71 permissions=NUMBER
72 : Document permissions to grant when encrypting
73
74 user-password=PASSWORD
75 : Password required to read document
76
77 owner-password=PASSWORD
78 : Password required to edit document
79
80 regenerate-id
81 : Regenerate document id (default yes)