Skip to content

API reference / Quittio \ Core \ Reading

DiagnosingXmlExtractor

interface in quittio/core · extends EmbeddedXmlExtractor

Quittio\Core\Reading\DiagnosingXmlExtractor · Source

An extractor that also reports where the XML came from and what it noticed on the way.

Methods#

MethodDescription
->extract()
->extractFile()The embedded invoice XML with its file name, /AFRelationship and the findings of the extractor, or null if the PDF embeds none. InvoiceReader adds the findings to the ReadResult.

extract()#

public function extract(string $pdf): array{0: string, 1: string}|null

inherited from EmbeddedXmlExtractor

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

extractFile()#

public function extractFile(string $pdf): ?ExtractedXml

The embedded invoice XML with its file name, /AFRelationship and the findings of the extractor, or null if the PDF embeds none. InvoiceReader adds the findings to the ReadResult.

ParameterTypeDescription
$pdfstring
Returns
?ExtractedXml

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