Skip to content

API reference / Quittio \ Core \ Pdf \ Renderers

PassthroughRenderer

final class in quittio/core · implements PdfRenderer

Quittio\Core\Pdf\Renderers\PassthroughRenderer · Source

Uses a finished PDF supplied by the application; only PDF/A and the XML are added.

Methods#

MethodDescription
->__construct()
->render()Returns the supplied PDF, passed through the post processor when the request asks for PDF/A or an embedded XML. The HTML of the request is not used.
->supportsEmbedding()PDF/A and the embedded XML are added by the post processor of this renderer.

__construct()#

public function __construct(
    string $pdf,
    PdfPostProcessor $postProcessor = new \Quittio\Core\Pdf\PostProcessing\MpdfPostProcessor(),
)
ParameterTypeDescription
$pdfstring
$postProcessorPdfPostProcessor = new \Quittio\Core\Pdf\PostProcessing\MpdfPostProcessor()

render()#

public function render(RenderRequest $request): string

Returns the supplied PDF, passed through the post processor when the request asks for PDF/A or an embedded XML. The HTML of the request is not used.

ParameterTypeDescription
$requestRenderRequest
Returns
string

supportsEmbedding()#

public function supportsEmbedding(): bool

PDF/A and the embedded XML are added by the post processor of this renderer.

Returns
bool

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