Tried subscribing but couldn't (some https error) - different story.

Environment: iText Version 5.3.1 for Java running on Win7 (64 bit)

 

The Challenge: to take several (could be 100's) of PDFs produced by InDesign
Server and stitch them together into a single PDF. The PDFs have layers/OCGs
for different language version of text but common layers like images and
prints marks.

 

The problem: 

1.       The 'easy' classes based on PdfCopy (tried all of them) don't
recognise OCGs and strip them out. Even if I add them manually by creating a
new PdfLayer. This is because they override the PdfWriter.close() method
which otherwise would write them out. The result is you get the objects for
each OCG/Layer in the output but the /Catalog doesn't list them so they
aren't used.

2.       Tried using 'PdfStamper' on the first PDF and then had to hack a
way to get it to append the pages from the remaining docs (getImportedPage).
This does keep the OCGs from the first document, it does append the
streams/dictionaries from the other documents - but it doesn't update the
/Pages dictionary to make the extra pages visible.

 

I haven't included examples - but just use a single PDF with layers and try
to create an output PDF that includes it a number of times. It's impossible.

 

Any help appreciated!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to