1) Glad the summit was successful!!! 2) Thanks for confirming what I thought. So I have to copy the individual PdfDictionaries (Annots), then basically add them back to the new document. Which might make it just easier to copy the content and create new ones, since I'm only concerned about TextBox/text annots anyway, it makes the parsing of the data easier...
Thank you for taking the time to reply! -AJ On 3/29/2012 1:34 PM, 1T3XT BVBA wrote: > On 29/03/2012 15:04, AJ Weber wrote: >> I am thinking my problem is that I'm copying the existing /Annots array, >> but it's not doing a "deep copy" of all the referenced annot >> dictionaries? > You're not making a deep copy. > For instance: you're making a copy of an array like this: > [ 10 0 R 11 0 R 12 0 R ] > And somewhere in your document you have objects 10 0 obj, 11 0 obj, 12 0 > obj followed by dictionaries that describe the annotation. > >> Plus, when I try to put it back, it looks like I'm >> putting back an Array, but the original document actually had a >> reference to the array (don't know if that matters that I accidentally >> changed it from an indirect to direct reference)? > Now you're copying [ 10 0 R 11 0 R 12 0 R ] into another document, that > may or may not have objects 10 0 obj, 11 0 obj, 12 0 obj. 10 could be a > stream, 11 a font dictionary, 12 a page dictionary. In no way, such a > PDF will be OK. > >> Can anyone point me in the right direction here? > Sorry, no time for that. Too tired from the iText Summit (which was very > interesting by the way). > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > 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 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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