r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.

  • Home
  • ABOUT
  • OLD SITE
  • SEARCH
  • FEEDBACK

How-To: Remove a (known) password from a PDF file in Linux

r3dux | November 17, 2011

I had a PDF the other day which required me to enter a password before viewing it, which is something I’d never seen before, so being a chancer I just slapped enter and it worked (i.e. there was no password, or more accurately the password was blank). However, keeping a file in that state is just stupid, so I wanted the “password” removed – and it turns out that it’s dead simple to do in Linux.

Two Stepper

  1. Install qpdf with synaptic or the command:

    sudo apt-get install qpdf
  2. Issue the following command:
    qpdf --password=YOURPASSWORD-HERE --decrypt INPUT-FILE.pdf OUTPUT-FILE.pdf

    So, if your password protected pdf is called foo.pdf and the password is empty (i.e. “”) like in my case, you just issue something like this:

    qpdf --password= --decrypt foo.pdf foo-no-password.pdf

Job done!

Comments
No Comments »
Categories
Linux
Tags
Decode, Decrypt, Password, PDF, qpdf, Removal, Remove, Strip
Comments rss Comments rss
Trackback Trackback

How To: Fix CUPS PDF Printing in Linux

r3dux | August 25, 2009

CUPS, the Common Unix Printing System, is b0rked in the standard Jaunty 9.04 release. Which is less than ideal when you want to print directly to PDF.

You can use “Print to File” and change from PostScript to PDF, and this will work, but I just wanted to use the PDF virtual printer, so did a bit of research and fixed it. Turns out cups is fine, but the AppArmour profile for cupsd was busted, so all we need to do is to tell AppArmour to just moan about cups-pdf instead of shutting it down due to the wonky profile.

From the console enter the following.

r3dux@r3dux-laptop:~$ sudo aa-complain
Please enter the program to switch to complain mode: cupsd
Setting /etc/apparmor.d/usr.sbin.cupsd to complain mode.
 
r3dux@r3dux-laptop:~$ sudo /etc/init.d/cups restart
* Restarting Common Unix Printing System: cupsd
[ OK ]

FiXX0r3d. Or smth.

Source: http://linuxmoc.wordpress.com/

P.S. You can also fix the problem by disabling the AppArmour profile instead of putting the profile for cupsd to complain mode, full details given at source page above.

Comments
No Comments »
Categories
How-To, Linux
Tags
CUPS, How-To, PDF, Print, Printing
Comments rss Comments rss
Trackback Trackback

Translate

Categories

Archives

Tags

3D ActionScript ActionScript 3.0 Adobe AI Ballarat Bash C++ Class Convert CS4 Effect Film Flash GLSL Gnome Hack How-To install Jaunty Java Kinect Linkage Linux Mash-Up Microsoft Motion OpenGL Particle Photoshop Problem PS3 Remix Remove Retro script Slides Sound Systems Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

OpenR3dux

Misc.

Flattr this

RSS Feed

r3dux twitter feed



“A hammer sometimes misses its mark - a bouquet never.”

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox