Class ZugferdDocumentPdfReader - horstoeko/zugferd GitHub Wiki

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

Tries to load a PDF file (ZUGFeRD/Factur-X) and return a ZugferdDocumentReader

Signature

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

Parameters

Name Type Allows Null Description
pdfFilename string

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

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

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

⚠️ **GitHub.com Fallback** ⚠️