MpdfPostProcessor
in package
implements
PdfPostProcessor
FinalYes
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.
Table of Contents
Interfaces
- PdfPostProcessor
- Turns an existing PDF into PDF/A-3 with embedded invoice XML (for callback and passthrough renderers).
Methods
- __construct() : mixed
- process() : string
Methods
__construct()
public
__construct([string|null $tempDir = null ]) : mixed
Parameters
- $tempDir : string|null = null
process()
public
process(string $pdf, EmbeddedXml|null $embedded, string $title[, string|null $author = null ]) : string
Parameters
- $pdf : string
- $embedded : EmbeddedXml|null
- $title : string
- $author : string|null = null