These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to open a pdf and automatically input the password.

wwwzj30
Registered: Oct 27 2008
Posts: 3
Answered

I want to write a program that can open a encrypted pdf file. I have the password to open but I don't want the users to see the password, so others won't be able to open the pdf without the program I wrote. How can I use parameters correctly to do what I want?

I tried [AcroRd32.exe /a "password=10293810" "c:\h.pdf"] but doesn't work. It still requires user to input a password.

Thanks

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
There is no command line option for passing a password to Reader, or any other means short of creating a custom plug-in, which Adobe probably wouldn't allow anyone to create for Reader. Consider using certificate security.

George
try67
Expert
Registered: Oct 30 2008
Posts: 2399
The only way I can think of is through a custom-made stand alone application that will open the PDF and then paste the password. If you're interested, I can create such a tool for you. Contact me by email or PM me.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Here is some further detail on George's suggestion.
[url=http://support.adobe.com/devsup/devsup.nsf/docs/52224.htm]How To: Reader Plug-in opening secured PDFs[/url] from the Developer Knowledgebase.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.