On 15/12/2011 17:37, djonio wrote: > The code below works but the resulting file is almost twice the size of the > original. I could figure out no other way to get the layers from the > original to be duplicated in the copy. Is there a better way? I've looked at the code, and I don't understand it. My main concern is: Why are you using PdfStamper?
The layer infrastructure is similar to the outline infrastructure. If I needed to implement your requirement, I'd start by looking at the way PDFs containing bookmarks are concatenated. Of course: OCG layers are more complex than outlines, so you may hit some problems (for instance: what if two PDFs have layers with the same name, but a different meaning?), but unfortunately I don't have the time to experiment and you didn't provide any sample PDFs, nor did you subscribe to the list (which is against the rules of this list). ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ iText-questions mailing list [email protected] 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
