Re: [PC4P-users] Bug in setting the compression factor? And a possible fix
Status: Inactive
Brought to you by:
eru
From: <wi...@we...> - 2002-01-10 09:34:58
|
Hi Jason, >I've been trying to use pc4p_set_compression() without success. Looking at >the source code for pc4p_main.inc I found that pc4p_set_compression contains >a bug: Whoops, yes you're right...I fixed it in the CVS for now. Strangely you're the first to complain, apparently noone ever used this function or simply gave up on encountering that error. (and also it is obvious, that I never really tested the function *blush*) >Incidentally what is the purpose of the compression factor? And what is the >default? I have set it to 9, but the size of the PDF that I'm getting is the >same as if I hadn't set the compression. However If I view the file in Adobe >Acrobat then do a "Save As..." it results in a file that is 1/10th of the >original size (from 4MB to 400KB). Quote from the manual: "The PDF output will be compressed with the Flate (also known as ZIP) compression algorithm. Compression can also be deactivated. Compression applies to potentially large items, such as raster image data and file attachments, as well as text and vector operators on page descriptions. The compression speed/output size trade-off can be controlled with a PDFlib parameter." 0 is no compression, 1 is best speed, 9 is best compression. The manual gives no clue to the question, what the default is...hm Regards, Alexander -- | Alexander Wirtz | eMail: wi...@we... | | Systematics INTEGRATIONS GmbH | WWW: http://www.web-active.com/ | |