Item2492: GenPDFAddOn - compression sometimes corrupts images
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
SeanMorgan pointed out in
Support.Question336 that htmldoc can cause corrupted images if compression is enabled.
I found that it helped to modify /lib/Foswiki/Contrib/GenPDF.pm (down near the end, where all the other arguments are added) to add an extra argument.
push @htmldocArgs, "--no-compression"; # Work-around for image corruption problem
-- SeanMorgan - 10 Dec 2009
We need an option to disable PDF Compression. Default will remain to generate compressed PDF documents.
- #Set GENPDFADDON_DISABLECOMPRESSION = 1
Added two options -
- pdfcompression - set to "none" or 1-9
- pdfjpegquality - set to "none" or quality 01-99