_apollo wrote: > I've tried to make an copy of an existing PDF and add new attachments. It > works with the following code, but I lose the old attachments and the old > bookmarks, although I used PdfCopy, like described in the book from 2006.
I guess you're talking about Document Level Attachments (which aren't part of any page), instead of File Attachment Annotations (which should be copied with the page). Please clarify. 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. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ 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/
