Added support for presigned URLs in PDF responses and improved image handling by dynamically setting dimensions. Refactored and expanded wash certificate templates with additional fields and styles, along with a new background template. Updated HTML2PDF configuration for better rendering and full-page display mode.
Automatically stores the generated PDF in the specified directory. (temporary directory)
Sends the generated PDF to the minio / s3 bucket.
Downloads the generated PDF to the local container, when the user requests it. (This is to ensure that the user can
download the PDF even if the file is not stored in the local machine)
Sends the generated PDF to the user as a response to the request.
Requirements
PHP 7.2 or higher
Composer
HTML2PDF library
TCPDF library
The ./tmp directory must be writable by the web server user
The ./tmp directory must be writable by the user running the PHP script