From 9744414c66e3f85700ebc8b32d90f45ff97221bd Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 19 Aug 2017 09:18:14 -0400 Subject: Enable finer grained control of stream decoding This commit adds several API methods that enable control over which types of filters QPDF will attempt to decode. It also adds support for /RunLengthDecode and /DCTDecode filters for both encoding and decoding. --- manual/qpdf-manual.xml | 74 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 68 insertions(+), 6 deletions(-) (limited to 'manual') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index ac1de4c6..14e8b8bc 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -852,29 +852,91 @@ outfile.pdf who are very familiar with the PDF file format or who are PDF developers. The following options are available: + + + + + By default, or with , + qpdf will compress any stream with no other filters applied to + it with the /FlateDecode filter when it + writes it. To suppress this behavior and preserve uncompressed + streams as uncompressed, use + . + + + + + + + + Controls which streams qpdf tries to decode. The default is + . The following options are + available: + + + + : do not attempt to decode any streams + + + + + : decode streams filtered with + supported generalized filters: , + , + , and + + + + + + : in addition to generalized, + decode streams with supported non-lossy specialized + filters; currently this is just + + + + + : in addition to generalized and + specialized, decode streams with supported lossy filters; + currently this is just (JPEG) + + + + + + - Controls transformation of stream data. The value of - may be one - of the following: + Controls transformation of stream data. This option predates + the and + options. Those options can be + used to achieve the same affect with more control. The value + of may be + one of the following: : recompress stream data when - possible (default) + possible (default); equivalent to + + - : leave all stream data as is + : leave all stream data as is; + equivalent to + : uncompress stream data when - possible + possible; equivalent to + + -- cgit v1.2.3-54-g00ecf