Thanks for your fast answer.

>If you want Document Level Attachments to be copied, you need to add
>them to PdfCopy explicitly (because now you're only copying annotations
>that belong to pages, you aren't copying the Document Level Attachments).
>Or you could use PdfStamper; that would simplify your code.

Well, I don't read about the differentiation between these attachment kinds,
and don't know, how to find that out. The attachments I mean, are the one
like the code above creates them.

Let's assume it are Document Level Attachments. I want to copy an existing
pdf with all it's attachments and bookmarks. Then I want to add new
attachments to the copy. It's not important if it's with PdfStamper or
PdfCopy. Would you please show me an example? 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Lose-existing-Bookmarks-and-Attachments-with-PdfCopy-tp2239965p2240037.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to