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()

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
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.