At 11:10 AM 2/8/2006, Paulo Soares wrote:
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.
If you only wish to support standard Acrobat annotations through PDF 1.4, I would completely agree with Paulo - this is the way to go.
However, AFAIK, iText doesn't support the newer annotation types added in PDF 1.5 & 1.6, nor does it support custom annot types. So you would lose any support for those by following this method.
Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- 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