-
Notifications
You must be signed in to change notification settings - Fork 47
Class ZugferdDocumentPdfReaderExt
Class representing the extended document reader for incoming PDF/A-Documents with
attached XML data in BASIC-, EN16931- and EXTENDED profile. The Extended PDF reader
reads also additinal attached documents from PDF
Load a PDF file
public static function fromFile(string $pdfFilename): \ZugferdDocumentPdfReaderExt
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfFilename | string | ❌ | Contains a full-qualified filename which must exist and must be readable |
Returns a value of type \ZugferdDocumentPdfReaderExt
Load a PDF content string
public static function fromContent(string $pdfContent): \ZugferdDocumentPdfReaderExt
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ | Contains the raw data of a PDF |
Returns a value of type \ZugferdDocumentPdfReaderExt
Load a PDF file and return a ZugferDocumentReader-Instance
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
Load a PDF content and return a ZugferDocumentReader-Instance
public static function readAndGuessFromContent(string $pdfContent): \ZugferdDocumentReader
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ | Contains the raw data of a PDF |
Returns a value of type \ZugferdDocumentReader
Returns a invoice document XML content from a PDF file
similar to ZugferdDocumentPdfReader::getXmlFromContent
public static function getInvoiceDocumentContentFromFile(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 invoice document XML content from a PDF content string
public static function getInvoiceDocumentContentFromContent(string $pdfContent): string
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ | Contains the raw data of a PDF |
Returns a value of type string
Returns all additional documents (except the invoice document) from a PDF file
public static function getAdditionalDocumentContentsFromFile(string $pdfFilename): array
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfFilename | string | ❌ | Contains a full-qualified filename which must exist and must be readable |
Returns a value of type array<int,array{type: int, content: string, filename: string, mimetype: string}>
Returns all additional documents (except the invoice document) from a PDF content string
public static function getAdditionalDocumentContentsFromContent(string $pdfContent): array
{
}
Name | Type | Allows Null | Description |
---|---|---|---|
pdfContent | string | ❌ | Contains the raw data of a PDF |
Returns a value of type array<int,array{type: int, content: string, filename: string, mimetype: string}>
Returns an instance of ZugferdDocumentReader by a valid invoice attachment
public function resolveInvoiceDocumentReader(): \ZugferdDocumentReader
{
}
Returns a value of type \ZugferdDocumentReader
Returns the content as string if a valid invoice attachment was found, otherwise
an exception will be raised
public function resolveInvoiceDocumentContent(): string
{
}
Returns a value of type string
Returns a list of all additional attached documents except the invoice document
public function resolveAdditionalDocumentContents(): array
{
}
Returns a value of type array<int,array{type: int, content: string, filename: string, mimetype: string}>