- Posts: 5
- Thank you received: 0
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.
IP: 192.168.0.71
11 years 7 months ago - 11 years 6 months ago #6762
by ayyubid
How to get page number from link annotations. was created 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.
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: 11 years 6 months ago by wahyu_pratama.
IP: 192.168.0.110
11 years 7 months ago #6763
by Davide
Replied by Davide on topic How to get page number from link annotations.
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
like in the demo project
You can also check in the demo project the PDFPerformAnnot method in PDFReader class.
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);
You can also check in the demo project the PDFPerformAnnot method in PDFReader class.
IP: 192.168.0.71
11 years 7 months ago #6764
by radaee
Replied by radaee on topic How to get page number from link annotations.
javascript not supported yet.
just support Goto Action
just support Goto Action
IP: 192.168.0.71
11 years 7 months ago #6765
by ayyubid
Replied by ayyubid on topic How to get page number from link annotations.
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.
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.
IP: 192.168.0.71
11 years 7 months ago #6772
by nermeen
Replied by nermeen on topic How to get page number from link annotations.
Please check the new Version
2.9.11beta17
it has a new interface Annotation.GetJS() to get java script.
it has a new interface Annotation.GetJS() to get java script.
IP: 192.168.0.71
11 years 7 months ago - 11 years 7 months ago #6775
by ayyubid
Replied by ayyubid on topic How to get page number from link annotations.
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.
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: 11 years 7 months ago by wahyu_pratama.
Time to create page: 0.464 seconds