Pdf file alone not opening while clicking Hyperlink(hyperlink text) in RadPdfViewer?

1 Answer 142 Views
PDFViewer
Uma
Top achievements
Rank 1
Uma asked on 16 Mar 2022, 06:18 AM

Generating the file in temp folder and given the path to the hyperlink text in RadPdfViewer. While clicking the hyperlink, the pdf file does not open. 

We are doing the same process for txt , image and etc.. It is working fine for other type of files.

Please refer the below image.

1. Image file - while clicking the hyperlink the image file directly open(file is in temp folder)

2. Pdf file - while clicking the hyperlink the pdf file does not open ( file is in temp folder)

 

 

Please suggest. how to handle this?

 

 

Tanya
Telerik team
commented on 18 Mar 2022, 11:00 AM

Hello Uma,

Can you please provide more details about the scenario? Are the document or the hyperlinks generated in code or they are already existing ones? If they are being generated using the PdfProcessing API, please send us the code used for that. Otherwise, we will much appreciate it if you can share the document containing the hyperlinks so we can locally test it.

Uma
Top achievements
Rank 1
commented on 18 Mar 2022, 04:29 PM

Hi Team,

We have prepared the sample for your reference. please find the attachment. 

Hyperlink text generated by combination of XSLT and XML.

Uma
Top achievements
Rank 1
commented on 18 Mar 2022, 04:32 PM

Document and Assesmblies attached separately since the file size is huge.  

1 Answer, 1 is accepted

Sort by
1
Tanya
Telerik team
answered on 23 Mar 2022, 09:35 AM

Hello Uma,

Thank you for the additional information.

I managed to reproduce the issue and it turned out it is related to a not supported functionality. The hyperlink to the image is generated using a Link annotation while the one to the PDF document is declared with a FileSpec dictionary. This type of dictionary is not supported and I have logged a request about it: PdfViewer: Add support for FileSpec dictionaries. You can use this request to vote for the implementation of the task and subscribe to it if you would like to receive notifications about status changes.

On a side note, I have removed the attachments from your last reply as publicly sharing Telerik binaries is not permitted by our EULA.

I hope the provided information is useful.

Regards,
Tanya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PDFViewer
Asked by
Uma
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or