Q: If we iterate over the Fields of the document, How do we associate
the Field back to the Annotation to get annotation meta-data, such as
the Rectangle? Also, what do we use to replace the missing API call
pdftron.PDFAnnot.GetWidgetField()?
-----
A:
If we iterate over the Fields of the document, How do we associate the
Field back to the Annotation to get annotation meta-data, such as the
Rectangle?
You may want to take a look at the following article:
http://groups.google.com/group/pdfnet-sdk/browse_thread/thread/ec041d1a1346d6f1/c07549d4e8121ba3
replace the missing API call pdftron.PDFAnnot.GetWidgetField()?
You could create a pdftron.PDF.Annots.Widget from Annot or COS/SDF
object - the call widget.GetField(). For example:
// In C++
#include <PDF/Annots.h>
using namespace pdftron;
using namespace PDF;
using namespace Annots;
//-----
Annot a = ...
pdftron::PDF::Annots::Widget w1(a); //
or
Obj annot = ...
Widget w(annot);
Field f = w1.GetField();