Class ZugferdDocumentPdfReader - horstoeko/zugferd GitHub Wiki
Class representing the document reader for incoming PDF/A-Documents with
attached XML data in BASIC-, EN16931- and EXTENDED profile
Tries to load a PDF file (ZUGFeRD/Factur-X) and return a ZugferdDocumentReader
public static function readAndGuessFromFile(string $pdfFilename): \ZugferdDocumentReader
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfFilename | string | ❌ |
Returns a value of type \ZugferdDocumentReader
Tries to load an attachment content from PDF and return a ZugferdDocumentReader
public static function readAndGuessFromContent(string $pdfContent): \ZugferdDocumentReader
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ |
Returns a value of type \ZugferdDocumentReader
Returns a XML content from a PDF file
public static function getXmlFromFile(string $pdfFilename): string
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfFilename | string | ❌ |
Returns a value of type string
Returns a XML content from a PDF binary stream (string)
public static function getXmlFromContent(string $pdfContent): string
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ |
Returns a value of type string