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 - GoTo annotation - what is the Zoom Level
  FAQ FAQ  Forum Search   Register Register  Login Login

GoTo annotation - what is the Zoom Level

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

Joined: 18 Mar 09
Location: Croatia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZarkoGajic Quote  Post ReplyReply Direct Link To This Post Topic: GoTo annotation - what is the Zoom Level
    Posted: 31 May 10 at 3:27PM

Hi,

For an existing GoTo type annotation (link to a page in the same document), how do I read the "zoom" level?

More precisely, I am interested if the zoom is "inherit".


-zarko gajic
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 10 at 5:04PM
Hi Zarko!

Please have a look for yourself in the online-reference
at section "annotations...".
If there's something useful in the sdk for your needs then it's there.
Please read the descriptions.

Cheers, Ingo

Back to Top
ZarkoGajic View Drop Down
Beginner
Beginner
Avatar

Joined: 18 Mar 09
Location: Croatia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZarkoGajic Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jun 10 at 8:20AM
Ingo,

Did so already. But found nothing (or missed to find it).
-zarko gajic
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jun 10 at 9:45PM
Hi Zarko!

So what do you think this should mean ;-)
BTW: You can post this as a new wanted feature on the official support pages.

Cheers, Ingo


Edited by Ingo - 01 Jun 10 at 9:46PM
Back to Top
ZarkoGajic View Drop Down
Beginner
Beginner
Avatar

Joined: 18 Mar 09
Location: Croatia
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZarkoGajic Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jun 10 at 10:29AM
:) Was looking for a magical answer.

p.s.
Already done...
-zarko gajic
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: 03 Jun 10 at 10:21AM
We'll be adding enhanced support for retrieving information about actions for annotation links in version 7.21. This will then give you the ability to retrieve the zoom settings for GoTo and GoToR actions. There will be a beta version publicly available sometime in the next week or two.
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: 09 Aug 10 at 11:50AM
In 7.21 beta 3 there are two new functions:

GetActionDest
GetAnnotDest

For hotspot annotations the destination can either be specified directly in the annotation or it can be specified via a GoTo action.

So, depending on the particular PDF, you can now do something like this:

var
  ActionID: Integer;
  DestID: Integer;
  AnnotID: Integer;
begin
  AnnotID := <something here to get the annotation>
  DestID := QP.GetAnnotDest(AnnotID);
  if (DestID = 0) then
  begin
    // The annotation does not have a destination
    // specified directly, try get it via an action
    ActionID := QP.GetAnnotActionID(AnnotID);
    DestID := QP.GetActionDest(ActionID);
  end;
  if (DestID > 0) then
  begin
    Zoom := QP.GetDestValue(DestID, 5);
  end;
end;

If the Zoom value is zero it means that the zoom is not changed - I think that's what you meant by it being inherited.
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