<?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>Tyson Maly Computer Engineer in Finance &#187; technology</title>
	<atom:link href="http://www.tysonmaly.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tysonmaly.com</link>
	<description>Computer Engineering and Finance</description>
	<lastBuildDate>Sun, 18 Oct 2009 04:13:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automated PDF creation with perl</title>
		<link>http://www.tysonmaly.com/2006/10/05/automated-pdf-creation-with-perl/</link>
		<comments>http://www.tysonmaly.com/2006/10/05/automated-pdf-creation-with-perl/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 02:10:14 +0000</pubDate>
		<dc:creator>info</dc:creator>
				<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://70.98.54.29/~tysonmal/?p=3</guid>
		<description><![CDATA[This article shows how to automate the creation of PDF reports using perl.  The module PDF::API2  provides raw access to creating pdf files.
The PDF::API2 module gives you the ability to automate  the creation of beautiful PDF reports without the need to purchase expensive software.  Using the PDF::Table module, one can generate [...]]]></description>
			<content:encoded><![CDATA[<p>This article shows how to automate the creation of PDF reports using perl.  The module PDF::API2  provides raw access to creating pdf files.<br />
The PDF::API2 module gives you the ability to automate  the creation of beautiful PDF reports without the need to purchase expensive software.  Using the PDF::Table module, one can generate complex tables in your report.  One can abstract out many of the common features of a report and create an entire framework for generating reports.  Here is some sample code that creates a landscape page with a title and a line.</p>
<p>use strict;</p>
<p>use PDF::API2</p>
<p># create a pdf object giving it the name of the file to save the pdf to</p>
<p>my $pdf = PDF::API2->new(-file => &#8220;report1.pdf&#8221;);</p>
<p>my $font = $pdf->corefont(&#8217;Helvetica-Bold&#8217;);</p>
<p>my $page = $pdf->page;</p>
<p>$page->mediabox(792,612);</p>
<p># create a text label</p>
<p>my $txt = $page->text;</p>
<p>$txt->textlabel(72,540,$font,20,&#8221;Title of report1&#8243;);</p>
<p># create a line</p>
<p>my $gfx = $page->gfx;</p>
<p>$gfx->strokecolor(&#8217;#000000&#8242;);</p>
<p>$gfx->move(72,360);</p>
<p>$gfx->linewidth(1);</p>
<p>$gfx->line(720,360);</p>
<p>$gfx->stroke;</p>
<p>$pdf->save;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tysonmaly.com/2006/10/05/automated-pdf-creation-with-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
