API reference / Quittio \ Core \ Pdf
PdfRenderer
interface in quittio/core
Quittio\Core\Pdf\PdfRenderer · Source
Turns HTML (from the template) into a PDF, embedding the invoice XML if requested.
Methods#
| Method | Description |
|---|---|
->render() | |
->supportsEmbedding() | Whether the renderer creates the PDF/A and embeds the requested files itself (or with its own post processor). Otherwise Quittio passes the result to MpdfPostProcessor when the request asks for PDF/A or an embedded XML. |
render()#
public function render(RenderRequest $request): string| Parameter | Type | Description |
|---|---|---|
$request | RenderRequest |
- Returns
string
supportsEmbedding()#
public function supportsEmbedding(): boolWhether the renderer creates the PDF/A and embeds the requested files itself (or with its own post processor). Otherwise Quittio passes the result to MpdfPostProcessor when the request asks for PDF/A or an embedded XML.
- Returns
bool