CallbackRenderer
in package
implements
PdfRenderer
FinalYes
Own rendering function (e.g. Browsershot, Gotenberg) that returns PDF binary data.
PDF/A and the embedded XML are added by the post processor.
Table of Contents
Interfaces
- PdfRenderer
- Turns HTML (from the template) into a PDF, embedding the invoice XML if requested.
Methods
- __construct() : mixed
- render() : string
- supportsEmbedding() : bool
- PDF/A and the embedded XML are added by the post processor of this renderer.
Methods
__construct()
public
__construct(callable(string, RenderRequest): string $callback[, PdfPostProcessor $postProcessor = new MpdfPostProcessor() ]) : mixed
Parameters
- $callback : callable(string, RenderRequest): string
-
receives HTML and request, returns the PDF
- $postProcessor : PdfPostProcessor = new MpdfPostProcessor()
render()
public
render(RenderRequest $request) : string
Parameters
- $request : RenderRequest
Return values
stringsupportsEmbedding()
PDF/A and the embedded XML are added by the post processor of this renderer.
public
supportsEmbedding() : bool