Convert an HTML 2 PDF

  • Tannu4u
  • Proficient
  • Proficient
  • User avatar
  • Posts: 480
  • Loc: India

Post 3+ Months Ago

What is the best way to generate a PDF from an HTML file. I am using PHP as my scripting language.
I want some good suggestions so that i can create without much efforts.

Thanks in advance.
Amit
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

You want to convert a website written in HTML to PDF with PHP? The only way I can think of doing that is through screenshots service and you will get only 1 layer jpg/gif/png quality picture.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9089
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

We have used TCPDF to dynamically generate PDF invoices via the server. Works good and there are numerous ways you can write commands to create the PDF file, via HTML code is one way it supports.

Although I was happy with TCPDF, there are other libraries too including:

http://php.net/manual/en/book.pdf.php
http://www.pdflib.com/download/pdflib-f ... ib-lite-7/
http://www.fpdf.org/
http://code.google.com/p/dompdf/

I am not sure if any of these support using HTML commands, but TCPDF does for sure.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

:lol: wow for some reason I was saying PDF but was thinking PSD :oops:

Pardon that post...

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 84 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.