?
Solved

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

Posted on 2009-05-06
5
Medium Priority
?
887 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

752 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