View previous topic :: View next topic |
Author |
Message |
-Ben- n00b
Joined: 23 Jan 2004 Posts: 73 Location: Worms
|
Posted: Tue Oct 05, 2004 1:55 pm Post subject: need pdf cracker |
|
|
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 |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Tue Oct 05, 2004 2:36 pm Post subject: |
|
|
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 |
|
|
ralle Tux's lil' helper
Joined: 25 Mar 2003 Posts: 144 Location: Aachen, Germany
|
Posted: Tue Oct 12, 2004 3:02 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|