Extract XML From an Existing ZUGFeRD PDF
SetaPDF-Core (since version 2.46) comes with some helper classes and methods which make it very easy to handle ZUGFeRD (>=2.3) PDF documents in PHP.
This demo extracts the embedded XML package, validates it with a corresponding XSD file and finally shows some information collected from the XML package.
The PDF examples and XSD files are extracted from the ZUGFeRD Information Package.