Files
api/services/nginx/app/modules/html2pdf
Jepp9350 c8df3230d1 Remove unused form and enhance wash certificate handling
The `book_interior_wash_f` form was removed due to redundancy. Added functionality to handle wash certificate generation, including safety seal and operator data, and added a new form `complete_booking_f` to finalize bookings without certificates. Adjustments were made to several related components to ensure seamless integration.
2025-04-10 12:57:29 +02:00
..

HTML2PDF MODULE

This module is used to convert HTML to PDF using the html2pdf library.

Repository: https://github.com/spipu/html2pdf/

What does it do?

  • Converts HTML to PDF using the html2pdf library.
  • 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