PDF Document Restriction - Function Encrypt128 - Version 2.1

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
Mark_Ask
Posts: 2
Joined: Tue Dec 20 2005

PDF Document Restriction - Function Encrypt128 - Version 2.1

Post by Mark_Ask »

Hello,

I am in the process of upgrading the encryption of PDF files from 40-bit to 128-bit using PDF Converter version 2.10. I have succeeded in encrypting the PDF file at 128-bit but have noticed some differences in the results between the .Encrypt function and the .Encrypt128 function. The following is what is viewed in Acrobat Reader under File\Document Security when the encrytion process is complete:

.Encrypt Function Results
-----------------------------
Security Method : Password Security
Document Open Password : No
Permissions Password : Yes
Printing : High Resolution
Changing the Document : Not Allowed
Content Copying or Extraction : Not Allowed
Commenting : Not Allowed
Form Field Fill-in or Signing : Not Allowed
Content Accessibility Enabled : Not Allowed
Document Assembly : Not Allowed

.Encrypt128 Function Results
-------------------------------
Security Method : Password Security
Document Open Password : No
Permissions Password : Yes
Printing : Allowed
Changing the Document : Not Allowed
Content Copying or Extraction : Not Allowed
Commenting : Not Allowed
Form Field Fill-in or Signing : Allowed
Content Accessibility Enabled : Allowed
Document Assembly : Allowed

The code that I use is
m_oPDFDoc.Encrypt128 Owner, User, -64 + 4
[/quote][/b]

Please can someone inform me of how I can encrypt in 128 bit encryption and provide the same results as the 40 bit encryption process where the following are set:

Security Method : Password Security
Document Open Password : No
Permissions Password : Yes
Printing : High Resolution
Changing the Document : Not Allowed
Content Copying or Extraction : Not Allowed
Commenting : Not Allowed
Form Field Fill-in or Signing : Not Allowed
Content Accessibility Enabled : Not Allowed
Document Assembly : Not Allowed

Hope this makes sense.

Your help is much appreciated.

Thank you
Mark
Mark_Ask
Posts: 2
Joined: Tue Dec 20 2005

Encrypt128 - Permissions - Printing

Post by Mark_Ask »

Following on from my message above I have managed to set the permissions so that not are allowed. To do this I used the following code:

Code: Select all

m_oPDFDoc.Encrypt128 "test", User, 0
I figured out that I can allow printing for Low Resolution (150dpi) whilst not allowing any other permissions using the following code:

Code: Select all

m_oPDFDoc.Encrypt128 "test", User, 0 + 4
Please can someone inform me how to allow for High Resolution printing.

Thank you for you help

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

Post by Joan »

Hello,

In our premissions we either give permissin for printing or not, we do not control the printing resolution.

Using the latest version of the PDF Converter (2.50), the permissions using Encrypt128() are similar to the ones you get when using Encrypt().


Hope this helps.
Post Reply