I am trying to add comments stored in an xfdf file into a pdf file. I tried
using AddComments function available in PdfStamper class; however, it is
only limited to uploading fdf files. I have also tried the following code,
which always through a nullpointerexception in the last line:
PdfReader pdf= new XfdfReader("d:/doc.pdf");
XfdfReader dataReader = new XfdfReader("d:/comments.xfdf");
PdfStamper stamp=new PdfStamper(pdf,new FileOutputStream("d:/result.pdf"));
AcroFields fields =stamp.getAcroFields();
fields.setFields(dataReader);
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php