Yes I am. I run the program once with no compression, file size 34.3K. I run
again with compression level 9, file size 34.3K. No difference.

If I use setFullCompression, file size is 13.7K.

So I ask again. Should the setCompressionLevel for PdfCopy be giving me a
smaller size file? And since it isn't, then how is setCompressionLevel
supposed to be used with PdfCopy?

Edward W. Rouse


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Hans-Werner Hilse
Sent: Monday, August 11, 2008 11:33 AM
To: [email protected]
Subject: Re: [iText-questions] Question on compression.

Hi,

Edward W. Rouse wrote:

> Lol, it wasn't a complaint, it was a question. And it was a valid
> question. I would expect that if I used setCompressionLevel(9) that
> the resulting file should be smaller than using no compression at
> all. It isn't.

Are you comparing an iText generated uncompressed copy with an iText
generated compressed copy? I doubt, I think you're probably comparing
some external generated PDF to a iText-generated compressed copy of it.
Note that PdfCopy can produce bigger output stream than the input
stream.

But then, yes, in some cases you can wind up w/ a bigger file when
compressing data. It all depends on it's randomness.


-hwh

BTW: Is there any reason you don't mention the version of Ghostscript
you're using? Anyway, I think current Ghostscript should compile just
fine on Solaris 10.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to