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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Password to Open File
  FAQ FAQ  Forum Search   Register Register  Login Login

Password to Open File

 Post Reply Post Reply
Author
Message Reverse Sort Order
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Topic: Password to Open File
    Posted: 30 Mar 15 at 7:25AM
Hi,
 
you wanna set a user Password.
It's the same syntax:
retval = QP.Encrypt("myownerpassword", "myuserpassword", 1, Perms)
 
Cheers,
Ingo
 
Cheers,
Ingo

Back to Top
Supertension View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Aug 12
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Supertension Quote  Post ReplyReply Direct Link To This Post 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.
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store