export my .php to pdf [closed]

1

I was currently doing it with DOMPDF, with php 5.3, but I migrated to a php 5.1 and DOMPDF is not compatible with that version of php.

I need to know if there is any other library that allows me to export my .php in a simple way as it did with DOMPDF without writing each fragment as it is with fpdf: (

    
asked by Francisco Acevedo 14.12.2018 в 20:52
source

2 answers

0

I recommend you use TCPDF . I recently used this library to generate compliance certificates and it went well for me. They have a example that uses the WriteHTML() method and consists of passing a HTML and printing it in the pdf document %.

    
answered by 14.12.2018 в 21:29
0

With that version of PHP I do not think you have many options, if you have access to a command line you can try to install wkhtmltopdf and make a script to execute the options you need. Using it is as easy as

wkhtmltopdf http://google.com google.pdf
    
answered by 14.12.2018 в 22:29