How do we export XFDF of particular fields similar to annotations?

I need to generate XFDF of only text Fields. Is there a way to achieve this?

I’m using exportAnnotations function. Tried passing only textWidget Annotations in annotList but still it exports all the fields.

I’m referring this documentation to export annotations and fields

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi Laxman,

Unfortunately, when exporting with fields, all fields are exported. The field annotation shouldn’t affect the user in any way unless it has an associated WidgetAnnotaiton. So as long as you export the correct widgets it should have the same effect for the user.

Best Regards,
Ahmad Moaaz
Software Developer
PDFTron Systems Inc.