Skip to content

Class ZugferdDocumentPdfReader

HorstOeko edited this page Nov 24, 2024 · 7 revisions

Summary

Class representing the document reader for incoming PDF/A-Documents with
attached XML data in BASIC-, EN16931- and EXTENDED profile

Methods

readAndGuessFromFile [static]

Summary

Load a PDF file (ZUGFeRD/Factur-X)

Signature

public static function readAndGuessFromFile(string $pdfFilename): \ZugferdDocumentReader
{
}

Parameters

Name Type Allows Null Description
pdfFilename string Contains a full-qualified filename which must exist and must be readable

Returns

Returns a value of type \ZugferdDocumentReader

readAndGuessFromContent [static]

Summary

Tries to load an attachment content from PDF and return a ZugferdDocumentReader

Signature

public static function readAndGuessFromContent(string $pdfContent): \ZugferdDocumentReader
{
}

Parameters

Name Type Allows Null Description
pdfContent string String containing the binary pdf data

Returns

Returns a value of type \ZugferdDocumentReader

getXmlFromFile [static]

Summary

Returns a XML content from a PDF file

Signature

public static function getXmlFromFile(string $pdfFilename): string
{
}

Parameters

Name Type Allows Null Description
pdfFilename string Contains a full-qualified filename which must exist and must be readable

Returns

Returns a value of type string

getXmlFromContent [static]

Summary

Returns a XML content from a PDF binary stream (string)

Signature

public static function getXmlFromContent(string $pdfContent): string
{
}

Parameters

Name Type Allows Null Description
pdfContent string

Returns

Returns a value of type string

Clone this wiki locally