Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Annotation Link Named Action, 9 years 5 months ago #7747

  • bsantiago
  • bsantiago's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I was just wondering if there is a way to get the Named Action of an Annotation Link.

For example if there are 2 annotation links on page 1 of a document.
- First link points to the 2nd page.
- Second link has a Named Action = NEXT_PAGE.

Now both links will return page 2 when I use Annotation.getDest().
But I want to know if I click a link with a named Action = NEXT_PAGE.

Thanks.

Please Log in or Create an account to join the conversation.

Annotation Link Named Action, 9 years 5 months ago #7749

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
it is managed in native library for named action.
example: "NextPage" shall return (pageno of Page object) + 1;

Please Log in or Create an account to join the conversation.

Annotation Link Named Action, 9 years 5 months ago #7751

  • bsantiago
  • bsantiago's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I already notice that.
But I still want to check first if the link annotation is a "GoTo" page or a "NextPage";
Thanks.

Please Log in or Create an account to join the conversation.

Last edit: by Vacvn.

Annotation Link Named Action, 9 years 5 months ago #7777

  • bsantiago
  • bsantiago's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Any update on this? Thanks

Please Log in or Create an account to join the conversation.

Annotation Link Named Action, 9 years 5 months ago #7778

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
i'm wondering why you has this requirement.
to support this demand, we will have to add a new interface.
normally, we not consider this demand.

Please Log in or Create an account to join the conversation.

Annotation Link Named Action, 9 years 4 months ago #7881

  • bsantiago
  • bsantiago's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Imagine a Named Action "PrevPage" on the first page, Annotation.getDest() returns -1 which is similar to other named action links, so I cannot tell if the annotation link is a "PrevPage" or other named action link.

May I know if you'll consider adding this?

I have a similar query
www.androidpdf.mobi/forum/Android-develo...tation-custom-action

I think adding this Custom Name Action will both solve our problems.

Thanks.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum