dokich_1 Posted May 27, 2013 Share Posted May 27, 2013 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?ThanksAlex Link to comment Share on other sites More sharing options...
kpant Posted May 29, 2013 Share Posted May 29, 2013 Check your - hyperlinkReferenceExpression and also check whether all the parantheses are closed properly....K Link to comment Share on other sites More sharing options...
dokich_1 Posted May 29, 2013 Author Share Posted May 29, 2013 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 Link to comment Share on other sites More sharing options...
richddean Posted February 16, 2014 Share Posted February 16, 2014 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 Link to comment Share on other sites More sharing options...
paulpv11 Posted May 30, 2017 Share Posted May 30, 2017 For this purpose, chose target=Top and type=Reference. Paul P Vincent Link to comment Share on other sites More sharing options...
adavenport Posted February 26, 2019 Share Posted February 26, 2019 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. Link to comment Share on other sites More sharing options...
shweta_1 Posted January 16, 2023 Share Posted January 16, 2023 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 windowI see many post regarding this issue but have not found anything related to a work around or solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now