Op 9/06/2013 22:24, Steven Whatmore schreef:

The print vendor requires that we fully embed all fonts -- the barcode font is not big and we are embedding 9 fonts in total -- all through iText


OK, so normally each font stream should be identical.

Now the files that we are concatenating together are pretty close 1GB in total size -- and when we concatenate them together using PDFSmartCopy the resulting file is around 13Mb -- so we are seeing a dramatic decrease in size of the resultant file (as expected). However, and yes I am not a PDF expert here, the way the fonts streams are being referenced are causing the software by the print vendor to believe they are unique references and not shared


Which version of iText are you using?
Seems like PdfSmartCopy doesn't see that the font objects are identical.
We fixed this a couple of releases ago, but unfortunately, we broke PdfSmartCopy in iText 5.4.1 (an attempt to optimize caused problems with specific types of PDF that weren't in our test suite). This wil be fixed in the next release.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
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