<?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>The Bruised Edge &#187; xcf</title>
	<atom:link href="http://weblog.kevinclarke.info/tag/xcf/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblog.kevinclarke.info</link>
	<description>Digital Libraries, Repositories, Programming, Technology, Librarianship, etc.</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:19:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Howto: Saving an XCF with Layers to a PDF with Pages</title>
		<link>http://weblog.kevinclarke.info/2009/07/01/howto-xcf-with-layers-to-pdf-with-pages/</link>
		<comments>http://weblog.kevinclarke.info/2009/07/01/howto-xcf-with-layers-to-pdf-with-pages/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 21:00:37 +0000</pubDate>
		<dc:creator>ksclarke</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[xcf]]></category>

		<guid isPermaLink="false">http://weblog.kevinclarke.info/?p=222</guid>
		<description><![CDATA[I&#8217;m surprised that there isn&#8217;t an easier way to go from a Gimp file (.xcf) to a PDF.  Sure, you can always &#8220;print to pdf&#8221; if you are working with a single layer image, but what if you have a multi-layer image that you want to turn into a PDF with multiple pages (each page [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m surprised that there isn&#8217;t an easier way to go from a Gimp file (.xcf) to a PDF.  Sure, you can always &#8220;print to pdf&#8221; if you are working with a single layer image, but what if you have a multi-layer image that you want to turn into a PDF with multiple pages (each page being a layer from the image)?</p>
<p>Here is one way that I&#8217;ve found to accomplish this.  I&#8217;m using Ubuntu so any install stuff will be specific to that distribution, but the software I&#8217;m using should work on any Linux distro.</p>
<p>First, you&#8217;ll need Gimp.  I&#8217;m assuming that&#8217;s already installed.</p>
<p>Gimp won&#8217;t save a multi-layer image to a .ps, .tif, or .pdf by itself, though, so you need to install a script called &#8220;Save Layers as Individual Files&#8221; (this script can be <a title="Zip file for Gimp script" href="http://wiki.panotools.org/wiki/images/8/86/Save-layers-tiff-24.zip">downloaded for Gimp 2.4 or newer</a> from <a href="http://wiki.panotools.org/">Panotools</a>) .</p>
<p>Once you download this script it needs to be put in your Gimp scripts directory.</p>
<p><code>unzip -d ~/.gimp-2.6/scripts Save-layers-tiff-24.zip</code></p>
<p>Your scripts directory may be named something else if you are using another version of Gimp (other than 2.6).  Once the script is in that directory, it will appear in the <em>Script-Fu &gt; Utils</em> menu within Gimp (and can be applied to any open image).</p>
<p>Next, you need to install imagemagick.  If you don&#8217;t already have it installed, it&#8217;s as easy (on Ubuntu) as:</p>
<p><code>sudo aptitude install imagemagick</code></p>
<p>Once that is installed, you&#8217;ll be able to use the mogrify program which comes with ImageMagick.  From within the directory that contains all your TIF files, type:</p>
<p><code>mogrify -format pdf *.tif</code></p>
<p>This will generate PDFs for each of your TIF files.  You can then merge all the PDFs files into one using a program called PDFTK.  To install that, just type:</p>
<p><code>sudo aptitude install pdftk</code></p>
<p>Running that program is as easy as typing:</p>
<p><code>pdftk filename*.pdf cat output singlename.pdf</code></p>
<p>The filename*.pdf argument will catch all the individually named files created by the mogrify program (filename1.pdf, filename2.pdf, filename3.pdf, filename4.pdf, etc.)</p>
<p>And, that&#8217;s it!  You can open your new singlename.pdf file and have all those XCF layers now represented by individual pages within the PDF.  This is the easiest way that I&#8217;ve found to accomplish this task, but if you know of a better/easier way I&#8217;d love to hear it!</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.kevinclarke.info/2009/07/01/howto-xcf-with-layers-to-pdf-with-pages/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
