Is it possible to process pdf's internal links?

2 posts, 0 answers
  1. Andrey
    Andrey avatar
    3 posts
    Member since:
    Nov 2012

    Posted 15 Feb 2013 Link to this post


    I use RadBook with FixedDocumentSinglePagePresenter to show pdf documents, it works fine but I have problem: I want to handle clicks on links inside pdf, these links are internal. I know that FixedDocumentSinglePagePresenter can't handle clicks on links yourself, so I have to do it manually. I checked class RadFixedDocument and found that it have property Annotations that contains list of links with coords and sizes. It is good but problem is that I can't find info about link's desinations: each item has empty fields Action and Destination. Is there way to determine destination for internal links?
    P.S. I tested on this pdf:
  2. Petya
    Petya avatar
    983 posts

    Posted 19 Feb 2013 Link to this post

    Hello Andrey,

    Thank you for contacting us!

    Generally, the scenario you are describing is not possible using FixedDocumentSinglePagePresenter. Moreover, I would not suggest to use the approach in your project, as we are planning to obsolete it soon and expose a new way of presenting documents as single page that will provide all other functionality like selection, annotations, etc.

    Also, the file you are trying to show and navigate into will unfortunately not work very well with RadPdfViewer. The reason for that is that the Action of the internal links in it is not UriAction, which is the only supported as explained here. We are planning to introduce a way to navigate into such documents soon, but for now these links will unfortunately not work.

    I hope the information is helpful! Let us know if you have other questions.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top