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#
| Method | Description |
|---|---|
->__construct() | |
->render() | |
->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(),
)| Parameter | Type | Description |
|---|---|---|
$pdf | string | |
$postProcessor | PdfPostProcessor = new \Quittio\Core\Pdf\PostProcessing\MpdfPostProcessor() |
render()#
public function render(RenderRequest $request): string| Parameter | Type | Description |
|---|---|---|
$request | RenderRequest |
- Returns
string
supportsEmbedding()#
public function supportsEmbedding(): boolPDF/A and the embedded XML are added by the post processor of this renderer.
- Returns
bool