Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to put a password on a PDF file's security with PostScript?

Status
Not open for further replies.

Paco75

Programmer
Oct 11, 2001
239
US
Hi,

I want to know how to put a password on a PDF file's security using PostScript?

thanks
 
I haven't found a way to do this. The only available vehicle for directly creating PDF structures in your PostScript is with the "pdfmark" operator. Nothing in the PDF documentation refers to password protection.

Adobe has apparently abandoned any attempt to keep pdfmark up-to-date with the PDF spec. Just another example of Adobe's lack-of-interest in addressing the needs of the developer community.
 
What I really want to do here is prevent the user from modifiying the PDF... maybe there is another way to do so!

Thanks a lot
 
Acrobat, of course, allows you to do this when you save the document. The save dialog as a settings dropdown list. Choose "normal" and enter your passwords.
 
Yes but since the PDF is generated trough an appliaction I wish to automate this part... For now the only way I got to do this is to configure Acrobat Distiller to set a password and security to all PDF it will generate.
 
I think you've found the best way, then. Sorry, there just isn't a PostScript operator or structure to do this, at least not until Adobe updates the pdfmark operator.
 
Do you know where Distiller stores the security options I set... is it stored in a file like the joboptions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top