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

TOPIC:

clickable Table of Content 9 years 5 months ago #8161

  • sultan
  • sultan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I have a pdf file that has clickable table of content page, when I click on a page in the table of content it doesn't go to the page in the pdf file

how can implement that ?

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

clickable Table of Content 9 years 5 months ago #8162

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
just invoke m_reader.PDFPerformAnnot() in PDFReaderAct.OnAnnotClicked()

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

Last edit: by .

clickable Table of Content 9 years 5 months ago #8165

  • sultan
  • sultan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
I tried this and its not working OnAnnotClicked is not even fired when I click on the chapter

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

clickable Table of Content 9 years 5 months ago #8172

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
There are 2 different scenarios:
  1. You mean extracting the TOC from the document and build a ui to show them, and handle the click...in this case you need to call Outline.GetDest to get the page number, then call m_view.vGotoPage(dest);

  2. You mean the TOC that already exist in the pdf pages (first couple of pages), in this case they are in the form of annotations, and it can be handled as mentioned above..but make sure that you are using at least a professional license to support annotations (in the demo project it should work)

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

Last edit: by marcoP.

clickable Table of Content 9 years 5 months ago #8173

  • sultan
  • sultan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Thank you for the help, I tried this code : m_reader.PDFPerformAnnot() in PDFReaderAct.OnAnnotClicked()
in the demo project but it didn't work. the TOC is clickable when I open it from adope reader, but its not when I open it using the example

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

clickable Table of Content 9 years 5 months ago #8174

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this feature need professional license or premium license.
if you use standard license or no license actived, page jumping shall not works.

if you are using professional license or premium license, and not working yet:
plz send us sample PDF file.

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

  • Page:
  • 1
Powered by Kunena Forum