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