Skip to content

API reference / Quittio \ Core \ Reading

EmbeddedXmlExtractor

interface in quittio/core

Quittio\Core\Reading\EmbeddedXmlExtractor · Source

Extracts the embedded invoice XML from a hybrid PDF (ZUGFeRD/Factur-X, XRechnung in PDF).

Methods#

MethodDescription
->extract()

extract()#

public function extract(string $pdf): array{0: string, 1: string}|null
ParameterTypeDescription
$pdfstring
Returns
array{0: string, 1: string}|null – file name and XML content, or null if none is embedded

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.