Udai Al-Mulla wrote:
> 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);
I don't think this is supported in iText.
Please provide us with sample data (doc.pdf and comments.xfdf)
and we might have a look at the problem.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
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