Using hyperlink with target=Blank and type=Reference is not working inside PDF report

Hi all,

I'm using JasperReports 5.1 and I have a PDF report which has hyperlink inside it.

This pdf report will be browsed by user using built-in browser pdf plugins, so I need to open this url in new browser windows.

For this purpose I chose target=Blank and and type=Reference.

But I wasn't able even see the link using Chrome built-in PDF reader, and Firefox PDF plugin told me that there is an issue inside pdf and generated me invalid link (resource://pdf.js/web/).

Also I found many old questions on this forums regarding this issue without any normal work arounds or even reply.

So could you help me with it? Why it's not working?

Thanks

Alex

 

 

dokich_1's picture
Joined: May 27 2013 - 1:17am
Last seen: 10 years 4 months ago

Did you ever get a solution to this? I am having the exact same problem.

I noticed this same issue was posted a couple of years ago an never got an answer.

http://community.jaspersoft.com/questions/516867/pdf-targetblank

 

Thanks,

Richard

richddean - 9 years 7 months ago

For this purpose, chose target=Top and type=Reference.

 

Paul P Vincent

paulpv11 - 6 years 4 months ago

Is there a solution to this? I am facing exact same problem. On a PDF target=blank and type = reference is not working. It works on HTML and also if I use target=self. But I want to open the link in a new window

I see many post regarding this issue but have not found anything related to a work around or solution.

shweta_1 - 8 months 2 weeks ago

1 Answer:

Check your  - hyperlinkReferenceExpression and also check whether all the parantheses are closed properly....

K
 

kpant's picture
206
Joined: Sep 18 2009 - 7:23am
Last seen: 5 years 3 months ago

Hi, when I'm using target type "Self" with the same url all is ok, so issue is not in link, but rather in functionality.

Thanks
Alex

dokich_1 - 10 years 4 months ago

Thanks for your comment, @dokich_1! With type "reference" the hyperlink doesn't work in chrome's pdf viewer. With type "self" it works fine. 

adavenport - 4 years 7 months ago
Feedback
randomness