Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFrx question about encrypting PDF
Message
From
21/08/2020 11:57:42
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01675835
Message ID:
01675841
Views:
72
Thank you Martina.

>Hi,
>
>Why two passwords?
>Simply - because PDF specification, check "3.5 Encryption" and "3.5.2 Standard Security Handler" in PDF Reference:
>
>PDF’s standard security handler allows access permissions and up to two passwords to be specified for a document: an owner password and a user password. An application’s decision to encrypt a document is based on whether the user creating the document specifies any passwords or access restrictions (for example, in a security settings dialog box that the user can invoke before saving the PDF file). If so, the document is encrypted, and the permissions and information required to validate the passwords are stored in the encryption dictionary. (An application may also create an encrypted document without any user interaction if it has some other source of information about what passwords and permissions to use.)
>
>If a user attempts to open an encrypted document that has a user password, the application should prompt for a password. Correctly supplying either password enables the user to open the document, decrypt it, and display it on the screen. If the document does not have a user password, no password is requested; the application can simply open, decrypt, and display the document. Whether additional operations are allowed on a decrypted document depends on which password (if any) was supplied when the document was opened and on any access restrictions that were specified when the document was created:
>...
>
>MartinaJ
>
>>Hello all,
>>
>>This is what I read so far in the documentation about how to encrypt a PDF
>>
>>m.loSession.setPasswords(m.tcOwnerPassword, m.tcUserPassword)
>>The user password can be empty. If the owner password is empty, a random string will be generated as the password
>>
>>Question : Why two passwords?
>>
>>Question : Why would I want to leave the user password empty?
>>
>>Any other information about encrypting a PDF with xFrx is welcome.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Reply
Map
View

Click here to load this message in the networking platform