Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How to get page number from link annotations.

More
IP: 192.168.0.71 12 years 1 month ago - 12 years 3 weeks ago #6762 by ayyubid
Hi,
I am trying to page jump via link annotations.
The link annotations were assigned the following script.
"this.pageNum=10"
I implement PDFReaderListener and call PDFPerformAnnot() in the OnAnnotClicked method.
I expected to get page number or script string from uri parameter in OnOpenURI, but it was null.
Is there any way to get the page number from link annotation?
Thanks.
Last edit: 12 years 3 weeks ago by wahyu_pratama.
More
IP: 192.168.0.110 12 years 1 month ago #6763 by Davide
Hi,

the OnOpenURI method return null beacuse it handles external links like URL, not page jump links.

To handle page jump links you can use
Code:
m_view.vGotoPage(dest);
like in the demo project

You can also check in the demo project the PDFPerformAnnot method in PDFReader class.
More
IP: 192.168.0.71 12 years 1 month ago #6764 by radaee
javascript not supported yet.
just support Goto Action
More
IP: 192.168.0.71 12 years 1 month ago #6765 by ayyubid
Thanks for the reply.

It's a pity not support javascript.
I would like to see this in future release.

I'll change the link script to the external link in order to get page number from annotation.
It's not working as a page jump in general pdf readers, but my pdf file is only used in my application.

Thnak you.
More
IP: 192.168.0.71 12 years 1 month ago #6772 by nermeen
Please check the new Version 2.9.11beta17

it has a new interface Annotation.GetJS() to get java script.
More
IP: 192.168.0.71 12 years 1 month ago - 12 years 1 month ago #6775 by ayyubid
I really appreciate your prompt measures.
I check new release. The new interface OnOpenJS and GetJS works nice.

I have a one more request.
May I ask you to release this feature to the iOS SDK?
We are developing also for iOS application...

Thank you.
Last edit: 12 years 1 month ago by wahyu_pratama.
Time to create page: 0.440 seconds
Powered by Kunena Forum