-------------- Original message ----------------------
From: <[EMAIL PROTECTED]>
>
> Hi,
>
> does iText support the import of annotations in XFDF format?
>
> To import an FDF I can use PdfStamper.addComments, but this only accepts a
> FDFReader.
You didn't mention the type of annotations, but if you're question is about the
use of Widget Annotations (See Section 15.2 in the book), iText supports FDF
via the class FdfReader, e.g.,
FdfReader fdfreader = new FdfReader("my_fdf.fdf");
AcroFields form = stamp.getAcroFields();
form.setFields(fdf);
and it supports XFDF via the class XfdfReader, e.g.,
XfdfReader xfdfreader = new XfdfReader("my_xfdf.xfdf");
AcroFields form = stamp.getAcroFields();
form.setFields(xfdfreader);
For other types of Annotations, please refer to Leonard's answer.
For Reader-Enabled forms, you may wish to refer to Bruno's examples here:
http://www.1t3xt.info/examples/browse/?page=toc&id=365
Best regards,
Bill Segraves
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar