Closed duskybomb closed 6 years ago
It needs an extra IF to check for the presence of metadata. This is not related to embedded XML. Could also be an image or a font. Small fix.
Isn't this line checking the presence of metadata? if '/EmbeddedFiles' not in pdf_root['/Names']:
Yes. That's checking for embedded files. It may fail if nothing is embedded.
Embedding is not only for our XML file. It's also for fonts, images, certificates, etc.
Sorry, I didn't see you assigned it to yourself.
No worries. Good you solved it.
If there is no embedded xml to pdf:
Works fine with pdf having embedded xml