FdfDoc.MergeAnnots not saving custom attribute from command xfdf


As stated in the title i have an issue when using the merge annots method.

here’s a snippet.

SDFDoc sdf = FDFDoc.CreateFromXFDF(existingAnnotation);
FDFDoc fdf = new FDFDoc(sdf);


this is where the newAnnotations is a command file and it contains a custom attribute something like this :

<?xml version="1.0" encoding="UTF-8"?> "

my understanding is that it should automatically merge the string to the existing xfdf string but that’s not the case happening here.

Is the issue that the resolved=“resolved” entry is not part of the final XFDF?

Custom entries are not currently supported. If you wanted to support custom XML entries, you would post process the action, using whatever XML tool you have available to find that unique id (the name attribute) and to add it to the XFDF, or to the FDF. Once in the FDF file, the custom data will transfer to/from the PDF file.