Link to home
Start Free TrialLog in
Avatar of CalgOGP
CalgOGPFlag for Canada

asked on

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

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.
Avatar of Bembi
Bembi
Flag of Germany image

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
Avatar of CalgOGP

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CalgOGP

ASKER

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.