Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

external link only clickable if text is url #4038

Closed
inikhil24 opened this issue Aug 8, 2018 · 8 comments
Closed

external link only clickable if text is url #4038

inikhil24 opened this issue Aug 8, 2018 · 8 comments
Labels

Comments

@inikhil24
Copy link

Hello,

I am currently using wkhtmltopdf to do a basic conversion from html to pdf, below is the sample html code

1) <a href="www.google.com">Go To Google</a> // produces unclickable link
2) <a href="www.google.com">www.google.com</a> // produces clickable link for www.google.com
3) <a href="www.google.com">www.yahoo.com</a> // produces clickable link for www.yahoo.com

is this the expected behavior or something is wrong here?
how do we make the first option workable?
I'm using wkhtmltopdf 0.12.2.4 and on Linux Mint 18.

Thanks,
Nikhil

@Tomsgu Tomsgu added the Question label Aug 8, 2018
@Tomsgu
Copy link
Contributor

Tomsgu commented Aug 8, 2018

You're missing https:// in your href attribute. The link is clickable, but it points to file /www.google.com.

Note that 0.12.2.4 is quite old now.

@Tomsgu Tomsgu closed this as completed Aug 8, 2018
@inikhil24
Copy link
Author

inikhil24 commented Aug 8, 2018

out.pdf
following html produces a unclickable Go to Google link

<a href="https://www.google.com">Go to Google</a>

@Tomsgu
Copy link
Contributor

Tomsgu commented Aug 8, 2018

Most likely it's because of an old version. Can you try to update to 0.12.5 https://wkhtmltopdf.org/downloads.html? I cannot reproduce the issue in a new version.

@Tomsgu Tomsgu added the NeedInfo label Aug 8, 2018
@Tomsgu Tomsgu reopened this Aug 8, 2018
@inikhil24
Copy link
Author

inikhil24 commented Aug 8, 2018

Thanks for the help, version update did solved the issue.
can you point me where i can download the latest executable of wkhtmltopdf?
Thanks.

@Tomsgu
Copy link
Contributor

Tomsgu commented Aug 8, 2018

Good to hear that. There is no executable for 0.12.5 due to problems in: #3001. There is also an issue where you can find more information about it wkhtmltopdf/packaging#8

@giorni
Copy link

giorni commented Dec 1, 2018

This is still an issue. I am using version 0.12.5 with Debian 9, downloaded directly from website. I have https links and when I use something not as the link itself for the content text, it is not clickable. It does style the text as a link though, with with blue color and underline.

@giorni
Copy link

giorni commented Dec 1, 2018

My bad. It is not a problem with wkhtmltopdf. I generate pages separated and then I merge using GhostScript. Links stop working only after merge. More details can be found here, for reference.

@rajeshkr7
Copy link

@inikhil24 , I am using the latest version (0.12.6) but it still not working for me.
Issue

can you put your code or any change that you have made ?

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants