Solved

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

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to share My.Settings in multiple application instances ? 7 54
sftp vs SendThisFile 9 53
pdf to excel 8 70
Fraud Email 22 83
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
OnPage: Incident management and secure messaging on your smartphone
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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