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 - Error With Encrypt !
  FAQ FAQ  Forum Search   Register Register  Login Login

Error With Encrypt !

 Post Reply Post Reply
Author
Message
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Topic: Error With Encrypt !
    Posted: 11 Aug 11 at 11:59AM
hi, Greetings
i am trying to encrypt a file with all restriction.
and also want user to need to type password when open the encrypted pdf..

so i tried..
lngEncID = QPDF.EncodePermissions(0, 0, 0, 0, 0, 0, 0, 0)
QPDF.Encrypt "KamrulHassan", "KamrulHassan", 2, lngEncID


but it's not works; it's ask for the password but there is no restriction

and when i only use master/owner  password then restriction works, but not ask the user for password :(
QPDF.Encrypt "KamrulHassan", "", 2, lngEncID


and when i only use user  password then restriction does not works, but ask the user for password :(
QPDF.Encrypt "", "KamrulHassan", 2, lngEncID


so, my question is how i can merge both encryption (password and restriction)

please anyone help me out asap

best regards
kamrul hassan


Edited by m_alam - 11 Aug 11 at 2:15PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 11 Aug 11 at 2:08PM
Hi!

Any security setting needs at least and always the main password.
Your problem is here:
Shohag.EncodePermissions...
QPDF.Encrypt...
Try "QPDF.EncodePermissions..." and it will work with
"QPDF.Encrypt..." ;-)

Cheers, Ingo

Back to Top
m_alam View Drop Down
Team Player
Team Player
Avatar

Joined: 02 Aug 11
Location: Bangladesh
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote m_alam Quote  Post ReplyReply Direct Link To This Post Posted: 11 Aug 11 at 2:15PM
you don't get it sir, that's just a typing mistake..

because in my coding i used "Shohag" as the variable of libray.. and to make it clear here, i just change the "Shohag" to "QPDF" and forgot to Chane that one :(

how ever thanks for your reply

best regards
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