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

TOPIC:

Links in a PDF 9 years 9 months ago #6682

  • stefan.opitz@deutschebahn.com
  • stefan.opitz@deutschebahn.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hello,

We are currently with a problem that in some pdfs that contains links (in the index for example) those links are not working correctly.

They are being displaying with another background (which is ok) but when you try to click is not jumping. We just checked that the links are correctly linked while using another viewer.

We have a premium license, I tell this because I saw in another similar topic talking about the type of license also.

Thanks in advance

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

Links in a PDF 9 years 9 months ago #6686

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You need to implement the listener PDFReaderListener
You need to call m_reader.PDFPerformAnnot() in OnAnnotClicked(PDFVPage, Annotation)
And for links you need to imlpement OnOpenURI(String)
The following user(s) said Thank You: xiaofanwjj

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

Links in a PDF 9 years 9 months ago #6692

  • stefan.opitz@deutschebahn.com
  • stefan.opitz@deutschebahn.com's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Thanks, the anchor problem was solved overriding the method.

@Override
public void OnAnnotClicked(PDFVPage vpage, Annotation annot) {
this.PDFPerformAnnot();
}

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

  • Page:
  • 1
Powered by Kunena Forum