Hi,

I have a problem with merging a pdf document containing 4 layers. Two of the 
layers are not activated (isOn=false), but when merging it together with other 
pdf's the layers are all included (visible) in the merged pdf. We are using the 
following code (short) to add the document:

PdfCopyFields document = new PdfCopyFields(new 
FileOutputStream("c:\\layer_PdfCopyFields.pdf"));
PdfReader pdf;
pdf = new PdfReader("c:\\layer_PdfCopyFields.pdf");
document.addDocument(pdf);
document.close();

When looking in the layer_PdfCopyFields.pdf file, the layers are all visible 
(and all layer handling is gone). Why are all the layers merged into the new 
document? Is it possible to merge only the active layers into document?

WBR
Fredrik


------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
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