You are here: Foswiki>Tasks Web>Item2492 (09 Mar 2010, GeorgeClark)Edit Attach

Item2492: GenPDFAddOn - compression sometimes corrupts images

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: GenPDFAddOn
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
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

Topic revision: r5 - 09 Mar 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy