Not able to load xfdf data

Product: PDFTron

Product Version:9.2 (iOS)

Brief summary of your issue:
We observed that when we are trying to load XFDF data on some pdf, app is getting crash.

Please describe your issue and provide steps to reproduce it:

  • Open given PDF
  • Load given XFDF data into it
  • App is crashing on xfdf load

Can you help us to identify why app is getting crash? The crash is happening in iOS and Android both.

for opening pdf we are using:

documentController.openDocument(with: fileURL)

for loading xfdf we are using:

let fdf_doc: PTFDFDoc = PTFDFDoc.create(fromXFDF: fileURL.path)

Link to a minimal sample where the issue is reproducible: (63.8 KB)
→ zip contains Form PDF and xfdf data we are trying to load (Both xml and txt data are same)


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:



This is because the XFDF seems to be problematic. I’m getting the following exception with your XFDF.

Message: Required field attribute (/FT) not found
Conditional expression: o != NULL
Filename : Field.cpp
Function : GetType
Linenumber : 104
Error code : 0

May I ask where you obtained the XFDF data? Was it using PDFTron or a different solution?