This is a migrated thread and some comments may be shown as answers.

Is it possible to process pdf's internal links?

1 Answer 67 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 15 Feb 2013, 06:42 AM
Hello!

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: http://compositewpf.codeplex.com/downloads/get/166638#

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 19 Feb 2013, 01:35 PM
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.
 
Regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PDFViewer
Asked by
Andrey
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or