diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-09-12 23:54:26 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2022-09-13 01:34:50 -0600 |
| commit | 1157cfe76fbb47765380ca51b8e5fc3db21eefd2 (patch) | |
| tree | 54d5d2de19d82e263bfc0314f47e7bf9ff33fa9c /docs | |
| parent | edc2ea29d0d8e5e33615fa4e0757f933fad11f41 (diff) | |
document useful features that can be enabled using GS_OPTIONS
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/modules/ROOT/pages/optimize-pdf.adoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/optimize-pdf.adoc b/docs/modules/ROOT/pages/optimize-pdf.adoc index 3579073c..632644b2 100644 --- a/docs/modules/ROOT/pages/optimize-pdf.adoc +++ b/docs/modules/ROOT/pages/optimize-pdf.adoc @@ -68,6 +68,16 @@ For example, here's how you would get the optimizer to generate a grayscale PDF $ GS_OPTIONS='-sColorConversionStrategy=Gray -dNoOutputFonts' asciidoctor-pdf -a optimize filename.adoc +Here are some other features you can enable using `GS_OPTIONS`: + +-dBlackText:: +Force all text to rendered in black (gray value 0). +This can be useful if you are printing the document. +-dNoOutputFonts:: +Force all text to be converted to paths (linework) so it's not selectable (in exchange for a much larger document). +-sOwnerPassword=xyx -sUserPassword=xyx:: +Require a password to open the document (owner for edit, user for view). + In addition to optimizing the PDF file, you can also configure the optimizer to convert the document from standard PDF to PDF/A or PDF/X. To do so, you can pass one of the following compliance keywords in the value of the optimize attribute: `PDF/A`, `PDF/A-1`, `PDF/A-2`, `PDF/A-3`, `PDF/X`, `PDF/X-1`, or `PDF/X-3`. |
