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!
![]() |
Get Javascript from Annotation |
Post Reply ![]() |
Author | |
idolpx ![]() Beginner ![]() Joined: 26 Sep 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 26 Sep 12 at 4:02AM |
I'm having trouble figuring out how to get the Javascript from the Annotations in a PDF like the one in the following link.
The Annotations/Links are on the part numbers. Page 4 of the document has several.
The GetAnnotStrProperty(XXX, 101) returns "Link" but GetAnnotStrProperty(XXX, 102) is a null string. Any help is greatly appreciated. Edited by idolpx - 26 Sep 12 at 4:05AM |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Retrieving the Javascript is currently not implemented. I will see if we can add it for the next 9.12 beta release.
Andrew.
|
|
![]() |
|
idolpx ![]() Beginner ![]() Joined: 26 Sep 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Oh shoot... I need this right away. How soon do you think it will be added?
Any alternative way to get this?
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
It will be released with the next beta. If you had a source code version I might be able to release the patch to you. We expect 9.12 beta 1 to be about a week or so away. I can't make promises about that date though.
There are no workarounds as each AnnotStr property is stored in a different key and structure.
Andrew. Edited by AndrewC - 28 Sep 12 at 2:58PM |
|
![]() |
|
idolpx ![]() Beginner ![]() Joined: 26 Sep 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I did buy the Source Code License years ago. The last version of the source code I have is v6.02.
I don't believe that was an official release. It was before Debenu bought everything. |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Debenu PDF Library 9.12 beta 1 has just been released which has the new code.
The new beta can be downloaded from here http://www.debenu.com/blog/debenu-quick-pdf-library-9-12-beta-1-released.html Option 134 has been added. QP.SetAnnotStrProperty(1, 134, "app.alert('NEW ALERT');"); string s = QP.GetAnnotStrProperty(1, 134); Andrew. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3524 |
![]() ![]() ![]() ![]() ![]() |
Hi Jaime! If you have a source licence then it's the last one from Kevin Newman (version 5.11?). The version 6.02 was a modified version from the former user group working between Kevin and before Debenu ;-) If you want the new version you should buy an update via the official pages:
http://www.quickpdflibrary.com/store/quickpdf/index.php Cheers, Ingo |
|
![]() |
|
idolpx ![]() Beginner ![]() Joined: 26 Sep 12 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Ok... Thanks Ingo for the info.
I'll check out the new beta release as well.
|
|
![]() |
|
menteith ![]() Beginner ![]() Joined: 15 Sep 16 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
[QUOTE=AndrewC]
Debenu PDF Library 9.12 beta 1 has just been released which has the new code.
[/QUOTEThe new beta can be downloaded from here http://www.debenu.com/blog/debenu-quick-pdf-library-9-12-beta-1-released.html Option 134 has been added. QP.SetAnnotStrProperty(1, 134, "app.alert('NEW ALERT');"); string s = QP.GetAnnotStrProperty(1, 134); Andrew. Yes, I know it is very old thread, but it has important information. I would like to ask how to use SetAnnotStrProperty. The following command: string s = QP.GetAnnotStrProperty(1, 134); works fine in Debenu Quick PDF v13, even thought Option 134 is absent. However, QP.SetAnnotStrProperty(1, 134, "app.alert('NEW ALERT');"); doesn't work at all. So, how do I change JavaScript code in annotations? |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3524 |
![]() ![]() ![]() ![]() ![]() |
Here you can read which tags are possible using SetAnnotStrProperty:
http://www.debenu.com/docs/pdf_library_reference/SetAnnotStrProperty.php So it's clear that 134 won't work. The Get-function works but without guarantee - a hidden feature ... not official. |
|
Cheers,
Ingo |
|
![]() |
|
menteith ![]() Beginner ![]() Joined: 15 Sep 16 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
So is there an unofficial version of SetAnnotStrProperty to set JavaScript, too?
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3524 |
![]() ![]() ![]() ![]() ![]() |
no.
|
|
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