Skip to content

Class OrderDocumentPdfReader

HorstOeko edited this page Dec 28, 2024 · 1 revision

Summary

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

Methods

readAndGuessFromFile [static]

Summary

Load a PDF file (Order-X)

Signature

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

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 \OrderDocumentReader

readAndGuessFromContent [static]

Summary

Tries to load an attachment content from PDF and return a OrderDocumentReader
If any erros occured or no attachments were found null is returned

Signature

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

Parameters

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

Returns

Returns a value of type \OrderDocumentReader

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 String Containing the binary pdf data

Returns

Returns a value of type string