Zum Inhalt springen

API reference / Quittio \ Core \ Pdf \ PostProcessing

MpdfPostProcessor

final class in quittio/core · implements PdfPostProcessor

Quittio\Core\Pdf\PostProcessing\MpdfPostProcessor · Source

Imports the pages of an existing PDF (FPDI via mPDF), embeds the XML and writes PDF/A-3 metadata and output intent.

The result is PDF/A compliant only if the source PDF is: all fonts embedded, no encryption, no JavaScript. Check the result with veraPDF, ideally in CI.

Methods#

MethodDescription
->__construct()
->process()

__construct()#

public function __construct(?string $tempDir = null)
ParameterTypeDescription
$tempDir?string = null

process()#

public function process(
    string $pdf,
    ?EmbeddedXml $embedded,
    string $title,
    ?string $author = null,
): string
ParameterTypeDescription
$pdfstring
$embedded?EmbeddedXml
$titlestring
$author?string = null
Returns
string

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.