I need to export page web PDF con script php?

Asked By 10 points N/A Posted on -

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.


Best Answer by Henriy William
Answered By 0 points N/A #167915

I need to export page web PDF con script php?



You can use HTML2PDF, which is an HTML to PDF converter. It is written in PHP4 and PHP5

HTML to PDF converter


You may use Pdfcrowd API, which is an online tool. You can save the HTML code to PDF using PHP


The other option available for this purpose is DOMPDF. This is also an HTML to PDF converter written in PHP


Use the convertHTML() code like this;-

$pdf = $client->convertHtml("<body>My HTML Layout</body>");


Laz Zebbena

Best Answer
Best Answer
Answered By 0 points N/A #167916

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.
You can also visit this website for free HTML to PDF conversion
Hope this will help you.
Thank you.

Login/Register to Answer

Related Questions