For PDF/A documents which contain additional information (like barcode data) in their embedded metadata, is there a simple way to access this information from a Delphi application – instead of using a full-featured PDF reader / writer application library? (For example open source command line tools)
For PDF/A documents which contain additional information (like barcode data) in their embedded metadata,
Share
As far as I know the PDF metadata is just available in plain text in the PDF/A document.
So you can search for the
<x:xmpmetapattern in the file, then the whole metadata is available here, until</x:xmpmeta>. Then you retrieve the XML content.Then this UTF8String could be used to parse the XML content, as usual.
You can also locate this XML content using the “Metadata” kind of entry in the PDF catalog: this will be faster (don’t have the parse the file), but will need much extra coding.