Solved

How do I programatically strip a group of password protected pdf's of their password?

Posted on 2009-05-06
5
871 Views
Last Modified: 2013-11-10
I'm looking for a way to programatically unlock a group of PDFs with the password I have been given (using vb.net, vbs or c#). The password is the same for all files and will remain the same for all future files. We receive groups of PDF's (60-150 files) from a partner on a daily basis. We have someone manually open each one, enter the password, print the file to new pdf (to remove the protection), and move the file to it's respective directory for users to access.

I need a way to run a small program (maybe inside of a specified folder) which will attempt to unlock all pdf files which reside in the folder with it. I can't seem to find any information on automatically unlocking pdf's using a given password.
0
Comment
Question by:CalgOGP
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Bembi
ID: 24318027
Have a look here:
http://www.adobe.com/devnet/acrobat/
Download the Acrobat SDK

Within the Acrobat SDK, there should be a list with command line switches, you can use with Acrobat / Reader. Not sure if you can solve the password issue, but maybe it helps.  

Or online:
http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true
0
 
LVL 35

Expert Comment

by:Bembi
ID: 24318186
0
 

Author Comment

by:CalgOGP
ID: 24319785
That's useful but not exactly what I'm looking for. I plan to add code to a program I'm currently writing which will perform a couple steps. First it will unlock all files within a specified folder, then it will take each file and create/add to a directory structure on our network after parsing out the file name. There is a program called A-PDF Password Security which will batch remove security when given the password. I'm looking to write similar functionality but into one application.
0
 
LVL 35

Accepted Solution

by:
Bembi earned 500 total points
ID: 24320256
Ok, I understand. If you walk through the SDK, you see, that Acrobat (which may enforce, that Acrobat is installed on the machine, which should do the job) has an API. This API can be implemented into any program code (i.e. vb.net). The object model is decribed within the SDK.

As they stated on there web site, A-PDF is not using Acrobat API, means they write their own code.

To do so, you need a deep knowledge (or a real PDF crack) as you need to know the structure of PDF files.

Another option is to find another tool with an API, but my experience is, that the programs are often cheap, bit the SDKs and distribution licences are very expensive. Mostly you do not really win something in comparison to the Adobe Acrobat.

Have a look here:
http://www.pdf-tools.com/asp/products.asp?lang=en

I'm not the deep PDF programming crack, so it may be an idea to move this question (or close this and open a new one) into the programmers section for your language).
like: http://www.experts-exchange.com/Programming/Languages/

I assume, that you get more responses there if a PDF crack is online.
0
 

Author Closing Comment

by:CalgOGP
ID: 31578616
Thanks, I think I would still like to do this without using the Adobe API although I understand that the Acrobat SDK might provide the solution i seek. I'm going to move this over to the programming section.
0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now