Hi Everyone,
I want to find out how to transform and convert HTML to Portable document format (PDF) using PHP script. Please enlighten me and provide me detailed instructions on how to convert HTML files to a PDF. I want my HTML file to be exported as a PDF format file.
Does anyone have a script for converting HTML file to PDF. Is there any software or tool available which convert HTML to PDF using PHP.
Please suggest me what to do for export page web PDF con script PHP.
Thanks.
I need to export page web PDF con script php?
Hi,
You can use HTML2PDF, which is an HTML to PDF converter. It is written in PHP4 and PHP5
OR
You may use Pdfcrowd API, which is an online tool. You can save the HTML code to PDF using PHP
OR
The other option available for this purpose is DOMPDF. This is also an HTML to PDF converter written in PHP
OR
Use the convertHTML() code like this;-
$pdf = $client->convertHtml("<body>My HTML Layout</body>");
Regards,
Laz Zebbena
I need to export page web PDF con script php?
Dear user,
Â
Follow these steps for your guidance:
Â
1) Download Universal Document Converter software. On the main menu of internet explorer, open Tools, click Internet Options, then click on Advanced. Check the Print colors and images option, then press OK.
2) In the main menu, click on the file, click page setup to remove the header and footer from PDF file, press OK.
3) Now, open File, click on Print on Internet Explorer. Click on Universal Document Converter in the printers list, click on Preferences.
4) Open settings, click on Load Properties. Select "Web page to PDF.xml" by using the open dialog. Now click Open.
5) Click on Print, your HTML will start converting. The converted PDF file will be saved in My DocumentsUDCÂ Output Files.
Â
Â
Hope this will help you.
Â
Thank you.