<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Removing a password from a PDF on Linux - Comments</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux</link>
 <description>Comments for &quot;Removing a password from a PDF on Linux&quot;</description>
 <language>en</language>
<item>
 <title>Thanks for clarifying.</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-38214</link>
 <description>&lt;p&gt;Thanks for clarifying.&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jun 2008 15:31:44 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 38214 at http://townx.org</guid>
</item>
<item>
 <title>But pdftk needs OWNER</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-38140</link>
 <description>&lt;p&gt;But pdftk needs &lt;span class=&quot;caps&quot;&gt;OWNER &lt;/span&gt;password and to use the method decribed above you only need &lt;span class=&quot;caps&quot;&gt;USER &lt;/span&gt;pass.&lt;/p&gt;</description>
 <pubDate>Mon, 19 May 2008 11:20:03 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38140 at http://townx.org</guid>
</item>
<item>
 <title>Aha, great! I hadn&#039;t heard</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-14311</link>
 <description>&lt;p&gt;Aha, great! I hadn&#039;t heard of that application.&lt;/p&gt;</description>
 <pubDate>Thu, 16 Aug 2007 14:39:13 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14311 at http://townx.org</guid>
</item>
<item>
 <title>Better use pdftk</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-14309</link>
 <description>&lt;p&gt;Pdftk is a packaged on Debian an should be in many other distributions.&lt;br /&gt;
If not, it can be downloaded at &lt;a href=&quot;http://www.accesspdf.com/pdftk/&quot; title=&quot;http://www.accesspdf.com/pdftk/&quot;&gt;http://www.accesspdf.com/pdftk/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;apt-get install pdftk&lt;br /&gt;
pdftk secured.pdf input_pw foopass output unsecured.pdf&lt;/p&gt;

&lt;p&gt;As ps is not used, links are not lost and pdftk can do much more for you.&lt;/p&gt;</description>
 <pubDate>Thu, 16 Aug 2007 09:52:54 -0500</pubDate>
 <dc:creator>Fnor</dc:creator>
 <guid isPermaLink="false">comment 14309 at http://townx.org</guid>
</item>
<item>
 <title>Removing a password from a PDF on Linux</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux</link>
 <description>&lt;p&gt;I just bought a &lt;span class=&quot;caps&quot;&gt;PDF, &lt;/span&gt;legally, from a publisher&#039;s website. However, in their wisdom, they decided it would be a good idea to password protect all legally-purchased &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;s. This means that each time you open the &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;using Acrobat Reader, you have to remember and type in the password to read it. (Evince, the built-in &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;viewer in Linux, allows you to permanently save the password, but I tend to use Acrobat as it copes better with some &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;s.)&lt;/p&gt;

&lt;p&gt;So, if you know the password for a &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;and want to remove it, you can use the command line tools &lt;strong&gt;pdftops&lt;/strong&gt; and &lt;strong&gt;ps2pdf&lt;/strong&gt; to free your &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;from its chains.&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;Install pdftops. On Ubuntu, you can do:&lt;br/&gt;&lt;tt&gt;apt-get install xpdf-utils&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;Install ps2pdf. I think this is already included with a default Ubuntu.&lt;/li&gt;
&lt;li&gt;Convert the &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;to a postscript file, using the password:&lt;br/&gt;&lt;tt&gt;pdftops -upw &amp;lt;password&amp;gt; &amp;lt;file&amp;gt;.pdf&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;Convert the resulting postscript (which is now sans password) back to a &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;:&lt;br/&gt;&lt;tt&gt;ps2pdf &amp;lt;file&amp;gt;.ps&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;The only thing you lose are any &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;-specific features which don&#039;t translate to postscript, e.g. hyperlinks.&lt;/p&gt;

&lt;p&gt;Remember, this only works if you know the password for the &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;: it doesn&#039;t break the &lt;span class=&quot;caps&quot;&gt;PDF &lt;/span&gt;password for you.&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/removing-password-pdf-linux#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <category domain="http://townx.org/howtos">howtos</category>
 <pubDate>Sun, 12 Aug 2007 04:31:26 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">660 at http://townx.org</guid>
</item>
</channel>
</rss>
