Encrypt question

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
durban
Posts: 26
Joined: Tue Oct 01 2002
Contact:

Encrypt question

Post by durban »

If i encrypt a PDF file, is it possible to open it with the owner password (in PDFCreator) and do another encrypt with a new password and new permissions ?

If yes howto ?

Thanks
Didier Urban
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

It is not clear what you mean but below is a snippet of code that does this.

With PDF1
.SetLicenseKey LicenseTo, ActivationCode
'Open existing encrypted PDF document
.Open "c:\temp\testEncrypt.pdf", ""

'protect a document using a new owner and a new user password
.Encrypt "owner", "user", &HFFFFFFC0
.Save "c:\temp\testEncrypt.pdf", 0

End With

Thanks
Post Reply