I am using the Aspose.Examples.CSharp solution, using version 10.5.1.0 of Aspose.PDF for .NET
I am running the ImportAnnotations.cs example.
I have attached several .xml files, labeled as working or failing. The uploader would not allow me to attach .xfdf files, so I had to change them to .xml files. I have also attached the .cs file from the examples solution in .txt format.
When the importing fails, I get a System.ApplicationException, where the error message is "{"Unknown XFDF element 'freetext'"}". The unknown xfdf element is whatever annotation element comes after the single tag empty element. If I change the single tag empty element to a double tag empty element, it works again.
To summarize:
only works if it's the last element in < annots >...
unless you change it to < line ... >
Thanks!
To summarize:
only works if it's the last element in < annots >...
unless you change it to < line ... >
Thanks!