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!
![]() |
GetAnnotDest and GetActionDest cannot get the dest |
Post Reply
|
| Author | |
Jhon
Beginner
Joined: 10 Oct 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: GetAnnotDest and GetActionDest cannot get the destPosted: 10 Oct 10 at 5:42AM |
|
I have some pdf files, their internal links to other page is use named distination option.
I fond GetAnnotDest and GetActionDest cannot get the destid. How can i get the DESTID? thanks in advance for your help! |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Oct 10 at 1:29PM |
|
If the annotation is a "Link" annotation then the GetAnnotDest function is used to get the destination (the DestID). If the DestID is zero it means there is no destination only an action for that Link annotation. So this means, if DestID is a positive number then the GetDestPage function is used to get the page that the destination points to, but if the DestID is zero then the GetAnnotIntProperty is used to get the action's page. Another way of doing it for annotations with actions is using these functions: GetAnnotActionID GetActionDest GetDestPage In addition, for retrieving the destination zoom and location, the GetDestValue function can be used.
|
|
![]() |
|
Jhon
Beginner
Joined: 10 Oct 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Oct 10 at 3:50PM |
|
Thank you for your useful amswers!
I try again, if i open the Quick PDF Library 7.22 Reference Guide.pdf, you are right. but when i open js_developer_guide.pdf you can download from website: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_developer_guide.pdf But i still cannot get the action's page. can you help me? thank youvery much. |
|
![]() |
|
Jhon
Beginner
Joined: 10 Oct 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 Oct 10 at 3:18PM |
|
I am waiting for help!
Any one can help me? |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 Oct 10 at 9:39AM |
|
If you're working with named destinations then use the GetNamedDestination function. It locates the named destination with the specified name and returns a DestID that can be used with the GetDestPage, GetDestType and GetDestValue functions.
|
|
![]() |
|
Jhon
Beginner
Joined: 10 Oct 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 Oct 10 at 11:04AM |
|
Thank you very much for your reply.
The key is how can I get the specified name where a certain annotation links? I still need your help. |
|
![]() |
|
gege
Beginner
Joined: 05 Jan 10 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Oct 10 at 6:18PM |
|
Hello Rowan
Is there a "SetNamedDestination" to give a name to an outline link (bookmark) or an annotation? I wish to retrieve a page in a PDF document not by the pageNumber, but by a named destination. So I have to build such a Dests outline tree : 1 0 obj <</Type/Catalog /Names 2 0 R >> endobj 2 0 obj <</Dests 3 0 R >> endobj 3 0 obj <</Names [ (intro) 15 0 R (conclusion) 16 0 R (contact) 17 0 R ] >> Is it possible (and how) to do it? Many thanks for your reply. Gérard |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 Oct 10 at 4:01PM |
|
Hi gege, There isn't currently a SetNamedDestination function, but in the beta release that we're releasing tonight we've added some new functions that let you add named destinations to documents. We'll post it on our blog within the next 12 hours. Cheers, - Rowan.
|
|
![]() |
|
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