Error while creating xfdf file

PDFTron - 6.11
Error while creating xfdf file of few pdf files when freetext element has head=“OpenArrow” is getting added

Export a xfdf file of the given pdf file due to head=“OpenArrow” property of FreeText element, it is unable to create xfdf file if I remove head=“OpenArrow” and try to import the file then its working fine. Please reply soon what is the issue in creating xfdf files for these types of files.

Exception Method: SaveAsXFDF();
Exception Message: GetName() can’t be invokedon Obj of this

Find the file below:
File from Netnordic 2.PDF (827.9 KB)


Thank you for contacting us about this. On my end I was able to call the SaveAsXFDF() method without any exceptions. Could you please try upgrading to the latest version of the SDK to see if this resolves the issue for you?

If it still is, please provide us with a code sample so that we can try to best reproduce the issue on your end.

Thank you.

Hello Shakthi124,
Thanks for the reply,

Updated PDFTronDotNet version to 9.1
But still getting the same issue

Sample code we have used to create xfdf file is -

using (var pdfDocument = new PDFDoc(pdfFileStream))
using (var xfdfDocument = pdfDocument.FDFExtract(PDFDoc.ExtractFlag.e_both))
var xfdf = xfdfDocument.SaveAsXFDF();
return new MemoryStream(Encoding.UTF8.GetBytes(xfdf));


Gentle Reminder !
Waiting for the reply. Any leads with the above code?