<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How can I insert text into an existing PDF using Ghostscript?</title>
	<link>http://ask.metafilter.com/79284/How-can-I-insert-text-into-an-existing-PDF-using-Ghostscript/</link>
	<description>Comments on Ask MetaFilter post How can I insert text into an existing PDF using Ghostscript?</description>
	<pubDate>Fri, 21 Dec 2007 22:21:18 -0800</pubDate>
	<lastBuildDate>Fri, 21 Dec 2007 22:21:18 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I insert text into an existing PDF using Ghostscript?</title>
		<link>http://ask.metafilter.com/79284/How-can-I-insert-text-into-an-existing-PDF-using-Ghostscript</link>	
		<description>How can I insert text into an existing PDF using Ghostscript? &lt;br /&gt;&lt;br /&gt; I&apos;m attempting to write a bash script that will take the output of the &quot;tree&quot; command, and insert it into an existing PDF template. The script works, bu I haven&apos;t been able to figure out how to take the output of it and stick it into this template. Does anyone know of a solution that does no use any additional software other than Ghostscript?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.79284</guid>
		<pubDate>Fri, 21 Dec 2007 21:25:10 -0800</pubDate>
		<dc:creator>jackofsaxons</dc:creator>
		
			<category>PDF</category>
		
			<category>Linux</category>
		
			<category>Ghostscript</category>
		
			<category>BASH</category>
		
	</item> <item>
		<title>By: flug</title>
		<link>http://ask.metafilter.com/79284/How-can-I-insert-text-into-an-existing-PDF-using-Ghostscript#1176940</link>	
		<description>As a thought, postscript is usually easier to work with than PDF.&lt;br&gt;
&lt;br&gt;
So start with a postscript template, insert your script output (which may need to be suitably massaged by inserting certain postscript commands as necessary), then send the resulting postscript to Ghostscript, which can turn it into a PDF.&lt;br&gt;
&lt;br&gt;
You might be able to use something like &lt;a href=&quot;http://en.wikipedia.org/wiki/Groff_%28software%29&quot;&gt;groff&lt;/a&gt;?  Working with groff is going to be much simpler yet than even messing with postscript.  If your script could produce the text with needed groff formatting commands embedded, then you could send that output to groff to make PS, and the resulting PS output to Ghostscript to create a PDF.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://en.wikibooks.org/wiki/PostScript_FAQ#How_to_create_PS_file.3F&quot;&gt;Wiki&lt;/a&gt; for a bit more.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.79284-1176940</guid>
		<pubDate>Fri, 21 Dec 2007 22:21:18 -0800</pubDate>
		<dc:creator>flug</dc:creator>
	</item><item>
		<title>By: devilsbrigade</title>
		<link>http://ask.metafilter.com/79284/How-can-I-insert-text-into-an-existing-PDF-using-Ghostscript#1176958</link>	
		<description>Even better, could you make the PDF template with latex?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.79284-1176958</guid>
		<pubDate>Fri, 21 Dec 2007 22:54:02 -0800</pubDate>
		<dc:creator>devilsbrigade</dc:creator>
	</item><item>
		<title>By: donut</title>
		<link>http://ask.metafilter.com/79284/How-can-I-insert-text-into-an-existing-PDF-using-Ghostscript#1177024</link>	
		<description>Perhaps pdftk will help. I googled for &lt;a href=&quot;http://www.google.com/search?hl=de&amp;q=pdftk+insert++text+into+pdf&amp;btnG=Suche&amp;lr=&quot;&gt;pdftk insert text into pdf&lt;/a&gt; and found this &lt;a href=&quot;&quot;&gt;this&lt;/a&gt;, where they use pdftk to insert data into a pdf form.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.79284-1177024</guid>
		<pubDate>Sat, 22 Dec 2007 03:26:37 -0800</pubDate>
		<dc:creator>donut</dc:creator>
	</item>
	</channel>
</rss>
