-
Notifications
You must be signed in to change notification settings - Fork 51
Class ZugferdDocumentPdfReader
HorstOeko edited this page Nov 24, 2024
·
7 revisions
Class representing the document reader for incoming PDF/A-Documents with
attached XML data in BASIC-, EN16931- and EXTENDED profile
Load a PDF file (ZUGFeRD/Factur-X)
public static function readAndGuessFromFile(string $pdfFilename): \ZugferdDocumentReader
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfFilename | string | ❌ | Contains a full-qualified filename which must exist and must be readable |
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 | ❌ | String containing the binary pdf data |
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 | ❌ | Contains a full-qualified filename which must exist and must be readable |
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