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
new_path = pdf_file_path + “.merge.pdf”
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.