Annotation merge fails when xml tags are self-closing

This is valid XML:

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

And indeed, with a single annotation, this annotation is parsed and imported.

This is still valid XML:

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

But using the following code, you will only get the line annotation in your pdf:

pdf_doc = ex.doc
fdf_doc =FDFDoc.CreateFromXFDF(xfdf_string)

new_path = pdf_file_path + “.merge.pdf”
pdf_doc.Save(new_path, SDFDoc::E_linearized)

By making the following change, you get both the line and the rectangle:

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

We’re working around this, but this would seem to be a bug. Newer browsers (Chrome 37) will output the self-closing xml from the webviewer, while e.g. Chrome 33 does not, causing the issue.

Hello Aleks,

This issue was fixed earlier this month, with the fix available in the nightly builds: