• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPEDAL: Put a Listener on internal references (page/chapiter links) for a PDF document

 
Jpedal Asker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

how can I attach a listener to existing links on a certain page, which refer to another page?

What I can already do, is getting the Subtype of the extracted annotation Object and check if i've got an URL:




How to perform the same as in PART 2, but for internal references?

To exchange PdfDictionary.URI by PdfDictionary.Outlines didn't work.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got stuck at the same problem like you.

Did you manage to solve the problem?

Thanks.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luckily, I have found a solution for the problem. See my detailed explanation here: http://blog.codejava.net/nam/parsing-link-annotation-in-pdf-document/
Hope this will help others who are facing the same problem.
 
Jpedal Asker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved the problem by overwriting the DefaultActionHandler by the same mehtod, but specifying the ActionFactory. In this way you can tell exactly what should happen when an annotation has been clicked:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic