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!
![]() |
Setting name of annotation? |
Post Reply ![]() |
Author | |
cscooper ![]() Beginner ![]() ![]() Joined: 06 Apr 12 Location: Boulder, CO Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 13 Apr 12 at 2:55PM |
I can query the name of an annotation with GetAnnotStrProperty(103) but it's always empty, and calling SetAnnotStrProperty(103) doesn't work (it returns zero and the annotation name is unchanged0.
Is this just a shortcoming of the library, or am I missing something? Thanks! Chris p.s. I have the same question about setting the author name for an annotation (which is not the same as setting the author of the document) and the 'lock' property as well ... [QuickPDF library version 8.14] [64-bit Windows 7, C# in Visual Studio 2010] Edited by cscooper - 13 Apr 12 at 4:46PM |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
I have checked a few PDF's with annotations and not all annotations have a name and many of them don't have a name that is not meaningful.
Can you post a link to a PDF that you are trying to extract names from and I can tell you what is going on. Andrew.
|
|
![]() |
|
cscooper ![]() Beginner ![]() ![]() Joined: 06 Apr 12 Location: Boulder, CO Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Thanks for looking into this Andrew, this for an annotation that I am creating.
I call AddTextMarkupAnnotation() to create an annotation, and then in order to access that annotation from JavaScript I need to give it a name. There's a JavaScript function "doc.getAnnot()" that takes the annotation name as its argument and returns the Annot object - so the name doesn't have to make any sense to us humans as long as it's unique. For this same annotation that I am creating, I would like to set the 'author' property because Adobe Reader displays the popup for this annotation as a box split into two sections; the bottom section is the contents I specify with the SetAnnotContents() function so that's good, but the top section is for the author's name and it's always empty since I have no way to set it with QuickPDF. Finally, when the user views this annotation I've created, it's too easy for them to accidentally modify the text in the popup box, so I'd like to set the 'locked' property. Thanks! Chris |
|
![]() |
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