As I said PdfStamperImp.addComments() has code to restore the comments from FDF but the same principle will work with any annotation. You can (and should) store the data as an FDF, just look at what Acrobat produces for the comments. You can also have a look at FdfWriter to have some ideas. Probably the easiest way is to always save the annotations from an existing doc.
Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of A. S. Golub > Sent: Wednesday, February 08, 2006 3:44 PM > To: itext-questions@lists.sourceforge.net > Subject: RE: [iText-questions] Retrieving of the content of > stream objects > > > > >If you want to go through all that you might as well program > in assembler > to make it even more difficult. I'm a little lost about the original > question but: > > I want to store all the data, which completely describe PDF > annotation, > within some storage (text or binary file, database, special > storage object - > doesn't matter) and later to recreate annotation from those > data. Now I'm > stucked with recreation of annotation appearance. That is why > I'm asking for > a hint, how to recreate annotation appearance. > > Leonard suggested the way of solving the problem - I just want to get > confirmation, that I got him right. If you have another hint > for solving the > problem, I'll appreciate any help. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486& > dat=121642 > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions