Symbiote\PdfRendition\Service\PDFRenditionService::render
Renders passed in content to a PDF.
If $outputTo == '', then the temporary filename is returned, with the expectation that the caller will correctly handle the streaming of the content.
Signature
public function render(string
$content,
[string
$outputTo = NULL,
[string
$outname = '',
[string
$disposition = 'attachment']]] )
Parameters
$content
— string
Raw content to render into a pdf$outputTo
— string
'file' or 'browser'$outname
— string
A filename if the pdf is sent direct to the browser$disposition
— string
How the file is served:
- 'attachment' to download the pdf
- 'inline' to view the pdf in the browser
Returns
- string
The filename of the output file