Solved

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

Posted on 2009-05-06
5
872 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

803 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