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!
![]() |
How to disable copying of Text |
Post Reply ![]() |
Author | |
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 20 Apr 10 at 9:51PM |
Hi All, Is there a way to disable copying of text, i.e copy to clipboard, edit... copy etc. from created PDF documents
|
|
Mick Burian
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Mick!
I'm a bit astonished? What's your problem? Please read in the samples section and have a look in the reference. You asked this already and there's an answer, too? But again: Yes, you can do this. First use "permission" and then "encrypt". Have a look in the online reference i fear you can't avoid this ;-) Cheers, Ingo |
|
![]() |
|
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
I am sorry but I cannot find the section that helps me with this!
Trust me Ingo, I have looked everywhere but I cannot find a sample that will show me how do disable copying of text from the menu.
|
|
Mick Burian
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Mick!
You don't need a sample. The library has over 500 functions. I can't imagine that you want a sample for each function? Your a developer... You know how to create, unlock, load and free... and between load and free you can call the functions. Here's a partly sample from my app: // First the create and unlock and LoadFromFile then // . . . // in my app you can select which security stuff // and encryption level you want ... p5 := 9; If Pos('40', Trim(seclev.Text)) > 0 Then p5 := 0; If Pos('128', Trim(seclev.Text)) > 0 Then p5 := 1; If Pos('AES', Trim(seclev.Text)) > 0 Then p5 := 2; If Trim(print.Text) = 'Yes' Then p6 := 1 else p6 := 0; If Trim(copy.Text) = 'Yes' Then p7 := 1 else p7 := 0; If Trim(change.Text) = 'Yes' Then p8 := 1 else p8 := 0; If Trim(field.Text) = 'Yes' Then p9 := 1 else p9 := 0; If Trim(comment.Text) = 'Yes' Then p10 := 1 else p10 := 0; If Trim(access.Text) = 'Yes' Then p11 := 1 else p11 := 0; If Trim(assemb.Text) = 'Yes' Then p12 := 1 else p12 := 0; // . . . // few security settings only work with 128 bit encryption so ... If p5 = 0 Then begin p9 := 0; p11 := 0; p12 := 0; end; // . . . // now you create the permission string ... perm := QPL.EncodePermissions(p6, p7, p8, p10, p9, p11, p12, 0); // . . . // let the userpassword be a ''. That's better ;-) QP.EncryptFile(oldfilename, newfilename, mainpassword, userpassword, p5, perm); // . . . // a Free ... and that's it ;-) Cheers, Ingo |
|
![]() |
|
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
OK... I have found the commands to do this but am getting a message...
My steps are...
1. Code used:
hPermissions = QP.Permissions(1, 0, 1, 1, 1, 1, 1, 1)
hPermissions = QP.Encrypt("", "", 1, hPermissions) I do not want to use a password....
2. Result when opening document
'An unrecognized token was found when opening the document.
Document still opens.
3. When trying to save document, I get an 'Unable to save document error(110)'
|
|
Mick Burian
|
|
![]() |
|
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Thanks Ingo,
So to understand...
I need to create the PDF, then save the document to a file, then loadfrom file and encode the permissions and then encrypt to a new file?
|
|
Mick Burian
|
|
![]() |
|
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Thanks again Ingo... I have it working...
|
|
Mick Burian
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Thank God. I began going crazy ;-)
BTW: If it's working now you should post your code in the samples-section for the next. 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