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 - GetAnnotDest and GetActionDest cannot get the dest
  FAQ FAQ  Forum Search   Register Register  Login Login

GetAnnotDest and GetActionDest cannot get the dest

 Post Reply Post Reply
Author
Message
Jhon View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Oct 10
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jhon Quote  Post ReplyReply Direct Link To This Post Topic: GetAnnotDest and GetActionDest cannot get the dest
    Posted: 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!

Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Jhon View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Oct 10
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jhon Quote  Post ReplyReply Direct Link To This Post 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.



Back to Top
Jhon View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Oct 10
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jhon Quote  Post ReplyReply Direct Link To This Post Posted: 16 Oct 10 at 3:18PM
I am waiting for help!
Any one can help me?


Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Jhon View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Oct 10
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jhon Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
gege View Drop Down
Beginner
Beginner


Joined: 05 Jan 10
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote gege Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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.
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