Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Password to Open File |
Post Reply ![]() |
Author | |
Supertension ![]() Beginner ![]() ![]() Joined: 29 Aug 12 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() Posted: 29 Mar 15 at 3:02PM |
Hi,
I'm using version 8.16. I have several hundred files that I want to password protect. I use the following to set the password that a user is required to enter to make changes to a file's contents and it works fine. Perms = QP.EncodePermissions(1, 0, 0, 0, 0, 0, 0, 1) 'Set permissions retval = QP.LoadFromFile(MyFileName, NullString) retval = QP.Encrypt("mypassword", NullString, 1, Perms) QP.SaveToFile (MyFileName) My question is how can I use some similar coding to set the password that a user is required to enter to actually open a file? Many thanks. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi,
you wanna set a user Password. It's the same syntax: retval = QP.Encrypt("myownerpassword", "myuserpassword", 1, Perms) Cheers, Ingo |
|
Cheers,
Ingo |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store