<?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>Izikistan &#187; png</title>
	<atom:link href="http://isaac.wedin.org/tag/png/feed/" rel="self" type="application/rss+xml" />
	<link>http://isaac.wedin.org</link>
	<description>Isaac Wedin&#039;s blog</description>
	<lastBuildDate>Thu, 05 Jan 2012 20:30:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Converting a PNG to a PDF</title>
		<link>http://isaac.wedin.org/2010/01/22/converting-a-png-to-a-pdf/</link>
		<comments>http://isaac.wedin.org/2010/01/22/converting-a-png-to-a-pdf/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 19:39:34 +0000</pubDate>
		<dc:creator>isaac</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://isaac.wedin.org/?p=557</guid>
		<description><![CDATA[Why I wanted to do this: I got an IRS PDF form from someone. Many of the fields on the form were fillable, but obviously it couldn&#8217;t be signed &#8211; and the date field also wasn&#8217;t fillable. So, I could &#8230; <a href="http://isaac.wedin.org/2010/01/22/converting-a-png-to-a-pdf/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Why I wanted to do this: I got an IRS PDF form from someone. Many of the fields on the form were fillable, but obviously it couldn&#8217;t be signed &#8211; and the date field also wasn&#8217;t fillable. So, I could have just printed it out, completed it, then mailed it, but this is 2010 fergawdsakes! I know that Adobe thoughtfully sells just the tool for the job, but that&#8217;s no fun at all.</p>
<p>I knew I could import the PDF into Gimp (converting it into a bitmap) and edit it there, dropping in my signature and whatnot. Next I needed to turn the bitmap back into a PDF. Gimp doesn&#8217;t make PDFs, so I saved the bitmap as a high-res PNG and went looking for something to convert a PNG into a PDF.</p>
<p><a href="http://www.imagemagick.org/">ImageMagick</a> should have immediately occurred to me, but I needed Google to connect the dots. Here&#8217;s the command I figured out after some trial-and-error:</p>
<p><code>convert -page Letter -density 28.3 input.png output.pdf</code></p>
<p>Note that the 28.3 part was specific to the resolution of my PNG. Using other values, when I checked the PDF&#8217;s properties the dimensions weren&#8217;t 8.5&#215;11 &#8211; so I just tried numbers until I got close enough. I&#8217;d imagine there&#8217;s an automated way to do the calculation, but for just one PDF trial-and-error worked fine for me.</p>]]></content:encoded>
			<wfw:commentRss>http://isaac.wedin.org/2010/01/22/converting-a-png-to-a-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cloud.isaac.wedin.org

Served from: isaac.wedin.org @ 2012-02-05 02:08:58 -->
