Skip to content

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#

MethodDescription
->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
ParameterTypeDescription
$requestRenderRequest
Returns
string

supportsEmbedding()#

public function supportsEmbedding(): bool

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.

Returns
bool

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.