NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item2492: GenPDFAddOn - compression sometimes corrupts images

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension GenPDFAddOn  
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

ItemTemplate edit

Summary GenPDFAddOn - compression sometimes corrupts images
ReportedBy GeorgeClark
Codebase trunk
SVN Range
AppliesTo Extension
Component GenPDFAddOn
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:5975 Foswikirev:5990
TargetRelease n/a
ReleasedIn
Topic revision: r5 - 09 Mar 2010 - 21:22:51 - GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads