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#
| Method | Description |
|---|---|
->__construct() | |
->process() |
__construct()#
public function __construct(?string $tempDir = null)| Parameter | Type | Description |
|---|---|---|
$tempDir | ?string = null |
process()#
public function process(
string $pdf,
?EmbeddedXml $embedded,
string $title,
?string $author = null,
): string| Parameter | Type | Description |
|---|---|---|
$pdf | string | |
$embedded | ?EmbeddedXml | |
$title | string | |
$author | ?string = null |
- Returns
string