New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wkhtmltopdf v0.13 Links can't clickable #3613

Open
kakalong001 opened this Issue Aug 22, 2017 · 8 comments

Comments

Projects
None yet
8 participants
@kakalong001

kakalong001 commented Aug 22, 2017

my computer is Win10 64bit.
use wkhtmltopdf v0.13 32bit .
(when I use the v0.12 I always find some images be resized and color image becomes black and white)

I want to make the contents of a book by anchor on the first page.
But I find the link can't clickable. I think it's a big bug unless I can't find the right method.
For example, if transfer the following html to pdf, the link won't work.

clickme
I'm here.
@benedekh

This comment has been minimized.

Show comment
Hide comment
@benedekh

benedekh Aug 23, 2017

#3486 might help you

benedekh commented Aug 23, 2017

#3486 might help you

@kakalong001

This comment has been minimized.

Show comment
Hide comment
@kakalong001

kakalong001 Aug 24, 2017

@benedekh Thank you but it's not this reason.

kakalong001 commented Aug 24, 2017

@benedekh Thank you but it's not this reason.

@NiR-

This comment has been minimized.

Show comment
Hide comment
@NiR-

NiR- Aug 24, 2017

Contributor

@kakalong001 Could you provide a proper example of your html code please?

Contributor

NiR- commented Aug 24, 2017

@kakalong001 Could you provide a proper example of your html code please?

@kakalong001

This comment has been minimized.

Show comment
Hide comment
@kakalong001

kakalong001 Aug 24, 2017

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<style type="text/css">
.inline{
	display:inline;
}
</style>
</head>
<body>
<a href="http://www.kakalong.cn" ><div class="inline"><span>kakalong</span></div></a>
<a href="#bzjsl_1" ><div class="inline"><span>clickme</span></div></a>
<div style="height:900px;width:20px;background-color:green"></div>
<a id="bzjsl_1" name="bzjsl_1" >hello</a>
</body></html>

It works OK in v0.12.4 : both the two links can be clickable.
but in v0.13, the two both can't be clickable.
@NiR-

kakalong001 commented Aug 24, 2017

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<style type="text/css">
.inline{
	display:inline;
}
</style>
</head>
<body>
<a href="http://www.kakalong.cn" ><div class="inline"><span>kakalong</span></div></a>
<a href="#bzjsl_1" ><div class="inline"><span>clickme</span></div></a>
<div style="height:900px;width:20px;background-color:green"></div>
<a id="bzjsl_1" name="bzjsl_1" >hello</a>
</body></html>

It works OK in v0.12.4 : both the two links can be clickable.
but in v0.13, the two both can't be clickable.
@NiR-

@NiR-

This comment has been minimized.

Show comment
Hide comment
@NiR-

NiR- Sep 7, 2017

Contributor

Ok so, I tested with your HTML excerpt on Debian 8 and I can confirm this bug is happening. I will try to dig deeper and see what's going wrong.

Contributor

NiR- commented Sep 7, 2017

Ok so, I tested with your HTML excerpt on Debian 8 and I can confirm this bug is happening. I will try to dig deeper and see what's going wrong.

@ducktype

This comment has been minimized.

Show comment
Hide comment
@ducktype

ducktype Sep 14, 2017

Same issue here

ducktype commented Sep 14, 2017

Same issue here

@amanda-garceau

This comment has been minimized.

Show comment
Hide comment
@amanda-garceau

amanda-garceau commented Apr 1, 2018

+1

@alloylab alloylab added the NeedInfo label Jun 15, 2018

@Tomsgu Tomsgu removed the NeedInfo label Jul 19, 2018

@katanaE90

This comment has been minimized.

Show comment
Hide comment
@katanaE90

katanaE90 Sep 18, 2018

I added "display: inline-block" (or "display: inline") property to element "div" and it works for first link. In second link need replace "href" property from "# bzjsl_1" to "http: // ...", so second link can clickable too.
Belowe i attach changed links.

<a href="http://www.kakalong.cn" ><div style="display: inline"><span>kakalong</span></div></a>
<a href="http://www.kakalong.cn" ><div style="display: inline-block"><span>clickme</span></div></a>

katanaE90 commented Sep 18, 2018

I added "display: inline-block" (or "display: inline") property to element "div" and it works for first link. In second link need replace "href" property from "# bzjsl_1" to "http: // ...", so second link can clickable too.
Belowe i attach changed links.

<a href="http://www.kakalong.cn" ><div style="display: inline"><span>kakalong</span></div></a>
<a href="http://www.kakalong.cn" ><div style="display: inline-block"><span>clickme</span></div></a>

@Tomsgu Tomsgu added the NeedToVerify label Oct 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment