I am trying to add comments stored in an xfdf file to a pdf document.  The
option that have is to use PdfStamper class through addComments function,
which only accepts fdf files. Is there any other way to do this?

I have also tried the following code, which always throws a nullpointer
exception.

PdfReader pdf=new PdfReader("d:/Untitled1.pdf");
        XfdfReader xfdf=new XfdfReader("d:/Untitled2.xfdf");
        
        PdfStamper stamp=new PdfStamper(pdf,new
FileOutputStream("d:/Result.pdf"));
        AcroFields field=pdf.getAcroFields();
        field.setFields(xfdf);
        stamp.close();
-- 
View this message in context: 
http://www.nabble.com/Adding-Comments-stored-in-xfdf-to-a-pdf-file-using-itext-tp21672202p21672202.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to