<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eggBlog &#187; pdf generator</title>
	<atom:link href="http://www.eggchops.com/tag/pdf-generator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eggchops.com</link>
	<description>The noble ramblings of an eggChop</description>
	<lastBuildDate>Mon, 12 Jul 2010 13:07:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FPDF &#8211; Creating PDF files using PHP</title>
		<link>http://www.eggchops.com/web-stuff/php/fpdf-creating-pdf-files-using-php/</link>
		<comments>http://www.eggchops.com/web-stuff/php/fpdf-creating-pdf-files-using-php/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 22:39:53 +0000</pubDate>
		<dc:creator>eggChops</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[fpdf]]></category>
		<category><![CDATA[pdf generator]]></category>
		<category><![CDATA[php classes]]></category>
		<category><![CDATA[php to pdf]]></category>

		<guid isPermaLink="false">http://www.eggchops.com/?p=64</guid>
		<description><![CDATA[What is FPDF?
I came across thsi little gem while searching for a PHP class that allowed me to create PDFs on the fly using PHP. Basically, FPDF is a PHP class which generates PDF files using PHP. It is a free class and full documentation of its use and hw to use it can be [...]]]></description>
			<content:encoded><![CDATA[<h3><img class="alignright" title="fpdf" src="http://www.eggchops.com/wp-content/uploads/fpdf.gif" alt="" />What is FPDF?</h3>
<p>I came across thsi little gem while searching for a PHP class that allowed me to create PDFs on the fly using PHP. Basically, FPDF is a PHP class which generates PDF files using PHP. It is a free class and full documentation of its use and hw to use it can be found <a title="FPDF documentation" href="http://www.fpdf.org/" target="_self">here</a>.</p>
<p>With FPDF you can format a PDF in the same way that you would any PDF. There is support for header and footers, page breaks, images, colors and font-styling and page compression amongst other things.</p>
<p>FPDF works with PHP4 and PHP5.</p>
<p>The class is available for download from the <a href="http://www.fpdf.org/en/dl.php?v=16&amp;f=zip" target="_blank">FPDF site</a>.</p>
<p>Once downloaded, put the class into site wherever you fancy and creating a PDF can be as simple as using the following code:</p>
<pre><code>&lt;?php
<span class="kw">require(</span><span class="str">'fpdf.php'</span><span class="kw">);

</span>$pdf<span class="kw">-&gt;</span>AddPage<span class="kw">();
</span>$pdf<span class="kw">-&gt;</span>SetFont<span class="kw">(</span><span class="str">'Arial'</span><span class="kw">,</span><span class="str">'B'</span><span class="kw">,</span>16<span class="kw">);
</span>$pdf<span class="kw">-&gt;</span>Cell<span class="kw">(</span>40<span class="kw">,</span>10<span class="kw">,</span><span class="str">'Hello World!'</span><span class="kw">);
</span>$pdf<span class="kw">-&gt;</span>Output<span class="kw">();
</span>?&gt;</code></pre>
<p>Full documentation on how to use FPDF can be found on the main site at: http://www.fpdf.org/</p>
<p>Try it, you might like it <img src='http://www.eggchops.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.eggchops.com/web-stuff/php/fpdf-creating-pdf-files-using-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
