News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Convert HTML to PDF with Dompdf
August 15, 2013 @ 10:39:16

On PHPMaster.com there's a new tutorial from Shameer C showing you how to use Dompdf to convert HTML to PDFs. The handy library makes it (relatively) simple to automatically generate the documents without the need to know the internal PDF file structure.

PDF is a standard format originally created by Adobe for representing text and images in a fixed-layout document. It's not uncommon for a web application to support downloading data, such as invoices or reports, in PDF format, so in this article we'll go through how we can easily generate PDF documents using PHP.

He starts off with the installation (via Composer) and the creation of a simple "Hello World" document, showing how to "stream" it into a PDF file. He also includes some more advanced usage - loading an external HTML, drawing lines, changing fonts, adding page numbers and additional text to the page.

0 comments voice your opinion now!
html pdf convert tutorial dompdf adobe

Link: http://phpmaster.com/convert-html-to-pdf-with-dompdf

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Getting Started with Drizzle and PHP

Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework

Binary Tides Blog: Setup Apache 2.4 and Php FPM with mod proxy fcgi on Ubuntu 13.10

PHPMaster.com: Convert HTML to PDF with Dompdf

Stefan Mischook's Blog: Creating Your Own Functions - Part 2


Community Events





Don't see your event here?
Let us know!


community laravel language symfony podcast list conference voicesoftheelephpant introduction artisanfiles framework library tool opinion security interview version composer series release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework