I have a question about how to launch PDF at DOS prompt with password protected document.
In Tutorial Chapter 1, writer.setEncryption(PdfWriter.STRENGTH128BITS, "userpass", "ownerpass", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
When you double click the document on window explorer, the document will prompt you password and you have to manually key it the password. BUT what if I launch the PDF from DOS prompt? Will I be able to feed the password from command line? I want the password to be fed to the document without user has to key in themself manually. My program actually call the Runtime class of Java to launch the PDF.
Code Snippet:
String acroPath = "C:\\Program Files\\Adobe\\Acrobat 5.0\\Acrobat\\Acrobat.exe";
String command = acroPath+" /S "+"Chap0110.pdf";
Runtime.getRuntime().exec(command);
The purpose I want to do this is that I want to write a program that can launch the password-protected PDF document by feeding the password programmatically, without the hassle user has to key in manually. My program just provide internally. Any idea?
Besides "/S" option, do you guy know what other options available for launching acrobat at command line?
Thank you
Regards,
Michael
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions