Owner PassWord or User Password, Type protection...

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
lifegame
Posts: 7
Joined: Thu Nov 04 2004

Owner PassWord or User Password, Type protection...

Post by lifegame »

I Would like to desactive some features if the password is the Owner password or user password. How to know ?

I would like to know if the user have possibilities to print, or changing document, how can determine the protection type that I use with the encryption function ?

To enable printing, use:
pdf.Encrypt "owner", "user", &HFFFFFFC0 + 4
To enable changing the document:
pdf.Encrypt "owner", "user", &HFFFFFFC0 + 8
To enable copying text and graphics
pdf.Encrypt "owner", "user", &HFFFFFFC0 + 16
To enable adding and changing notes
pdf.Encrypt "owner", "user", &HFFFFFFC0 + 32

Have possibilities to retrieve informations ?

Thanks in advance...

:)
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I didn't really get your question.

If you encrypt a document you can specify an owner password and a user password. The owner password can not be null while the user password can.

When using the owner password to open the pdf file you will get all the rights over the file, no restrictions. When using the user password, you will get only the options allowed to the user when encrypting the document.

Example, when calling:
// To enable printing and copying text and graphics
pdf.Encrypt "owner", "user", &HFFFFFFC0 + 4 + 16

If you open the document using "owner" as password, you can do everything. But if you open the document using "user" you can only print the document and copy text and graphics, you can't add or change notes by example.

Hope this helps.
lifegame
Posts: 7
Joined: Thu Nov 04 2004

Post by lifegame »

Hello,

Sorry for my english...

I know If I open the document using "owner" as password, you can do everything.

But,

How to know if the document is open by User or Owner ?

How to know if User have right to print, or put notes or copying text ?

For exemple, I Would like to disable somes features if the user have no right to print.

You don't have Properties on PDFCreator Object that give actual rigth on the Document ?


Thanks,
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

This is not available in the current version of the PDF Creator.

This would be available in the next release.

I don't have a precise release date of the next release, please check our site www.amyuni.com for information.

Hope this helps.
Post Reply