Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
need pdf cracker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
-Ben-
n00b
n00b


Joined: 23 Jan 2004
Posts: 73
Location: Worms

PostPosted: Tue Oct 05, 2004 1:55 pm    Post subject: need pdf cracker Reply with quote

Hi,
I need a pdf cracker, I have some pdf files I cannot open with kpdf or xpdf, it only works on a windows machine with adobe acrobat reader.
I tried advanced pdf password recovery, but this program couldn't decrypt the file, because it was unable to open it, some error 3, something with an object table...
Is there a good decryption program for linux?
Thx for your help!
_________________
AgainstTCPA don't let them take YOUR RIGHTS!!!
stophiphop.de
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Oct 05, 2004 2:36 pm    Post subject: Reply with quote

first: wrong forum. we do not deal with cracks/serial/warze/whatever....

second: did you try acrobat reader under linux?

third: if acrobat reader under linux fails, then try acrobat reader under wine.



cheers

SteveB
Back to top
View user's profile Send private message
ralle
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 144
Location: Aachen, Germany

PostPosted: Tue Oct 12, 2004 3:02 pm    Post subject: Reply with quote

I've written a small script to remove the user password of pdf files to be able to print them via lpr. It need pdftk to be installed, pdftk is in portage.

Code:

#!/usr/bin/env python
# (c) by ralle
# This script is published under the GPL.


import sys,os,string

if len(sys.argv)==1:
  print "Usage: "+sys.argv[0]+" password files"
  print "Example: "+sys.argv[0]+" testpassword testfile.pdf"

else:
 
  files = sys.argv
  pw = sys.argv[1]
  del files[0]
  del files[0]
 
  print files
 
  for each in files:
    print "Removing password from "+each+"..."
    newfilename = string.replace(each,".pdf","_nopw.pdf")
    # You need pdftk to be installed to make this work!
    os.system("pdftk "+each+" input_pw "+pw+" output "+newfilename)
    # Uncomment the following line and comment out the previous if you would like to use GNU Ghostscript.
    # Does not work as well as pdftk!
    # os.system("gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="+newfilename+" -sPDFPassword="+pw+" -f "+each)
    print "Done with "+each+"!"


Just paste this code into a text file and make it executable.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum