Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
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…

706 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

18 Experts available now in Live!

Get 1:1 Help Now