Yes, I was aware and do make use of that functionality.  I was trying to
shrink the individual PDF as much as possible.  I'm also struggling with
image formats and their affect on file size.  I'm adding two images: a
logo and an advertisement.

 

The logo is a 1MB tif file and the ad is an 800KB tif.  If I eliminate
the logo and just add the ad.tif the PDF ends up about 200KB.  If I
convert ad.tif to ad.png (which shrinks the ad to 60KB) the PDF now
becomes 250KB.  My guess was the TIF is uncompressed and the PDF
compression gives better results than trying to compress an already
compressed PNG file.

 

But then I added my logo.tif the PDF exploded to 990KB.  If I convert
logo.tif to logo.png (which shrinks the logo to 20KB), the PDF ends up
210KB.

 

So sometimes the TIF format gives better results and other times not so
much.  Obviously it has something to do with the specifics of the
image....

 

jason

 

From: 1T3XT BVBA [mailto:i...@1t3xt.info] 
Sent: Thursday, March 17, 2011 12:02 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] same image, two absolute positions

 

Op 17/03/2011 16:54, Jason Berk schreef: 

I'll have to test, but I think I figured it out...I added my logo to the
doc at location A.  Then I close and stamp a "page x of y" and a logo in
the header at location B.  Same logo, two writers....that's probably my
issue.


Note that PdfSmartCopy can detect redundant streams.
So if you concatenate documents somewhere in your process,
using PdfSmartCopy could significantly reduce the file size.


This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is 
intended solely for its authorized recipient(s), and may contain information 
that is confidential and or legally privileged. If you are not an addressee, or 
the employee or agent responsible for delivering it to an addressee, you are 
hereby notified that any use, dissemination, distribution, publication or 
copying of the information contained in this email is strictly prohibited. If 
you have received this transmission in error, please notify us by telephoning 
(765)497-3328 or returning the email. You are then instructed to delete the 
information from your computer. Thank you for your cooperation.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to