Print Page | Close Window

GoTo annotation - what is the Zoom Level

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1462
Printed Date: 22 Nov 24 at 7:50PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GoTo annotation - what is the Zoom Level
Posted By: ZarkoGajic
Subject: GoTo annotation - what is the Zoom Level
Date 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



Replies:
Posted By: Ingo
Date 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



Posted By: ZarkoGajic
Date Posted: 01 Jun 10 at 8:20AM
Ingo,

Did so already. But found nothing (or missed to find it).


-------------
-zarko gajic


Posted By: Ingo
Date 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


Posted By: ZarkoGajic
Date Posted: 02 Jun 10 at 10:29AM
:) Was looking for a magical answer.

p.s.
Already done...


-------------
-zarko gajic


Posted By: Rowan
Date 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.


Posted By: Rowan
Date Posted: 09 Aug 10 at 11:50AM
In http://www.quickpdflibrary.com/blog/2010/07/quick-pdf-library-7-21-beta-3-released/ - 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk