Skip to main content
Inspiring
May 18, 2023
Answered

Script to open password protected pdf into Illustrator with a known password

  • May 18, 2023
  • 1 reply
  • 3424 views

I have a script that outputs a password protected pdf file, so therefore know the password. Is there a way to use this known password to reopen the pdf file via a script, meaning no users have access to the doc other than via the scripting?

Thanks in advance.

This topic has been closed for replies.
Correct answer glibshaft

Got you, ok, that leads me down the right path then. thanks for your input, Carlos.


Got this working by creating an Applescript app with keystrokes and then calling from the .jsx file.

Thanks for the input, much appreciated.

1 reply

Monika Gause
Community Expert
May 18, 2023

Do a web search for opening password protected PDFs. 

It will take you about 1 minute to open the PDF. And this of course applies to everyone who can do a web search.

glibshaftAuthor
Inspiring
May 18, 2023

Thanks for the quick reply. I have been searching for my specific answer but most answers I found are how to get around not having the password available. As I have the password I was wondering if there was a correct syntax to use to open the file as I cannot seem to find anything.

glibshaftAuthor
Inspiring
May 18, 2023

PDF password protection is not a protection. The whole point is that everyone who is able to do a web search also has access to your file.


Ok, thanks. Password protecting the file is sufficient for what I need, just to stop others opening it and changing it by accident rather than full on security.

I take it there is no Extendscript syntax for opening using the password then.