Closed LukasVaculcik closed 9 months ago
In documentation section Configuration of custom temp dir for mPDF in PdfResponse Is example of setting configuration of tempDir that is not working.
I repost solution from nette.org forum
Configuration should be:
services: - Contributte\PdfResponse\PdfResponseFactory([tempDir: %tempDir%/pdf])
and then creation of response object in PHP should be like:
$response = $this->pdfResponseFactory->createResponse();
instead of
$response = new PdfResponse();
Updated. Thx.
In documentation section Configuration of custom temp dir for mPDF in PdfResponse Is example of setting configuration of tempDir that is not working.
I repost solution from nette.org forum
Configuration should be:
and then creation of response object in PHP should be like:
instead of