wkhtmltopdf 0.12.3.2(带有补丁的 qt)——Windows 8
如果我在锚标记中包含一些 html,则生成的 pdf 不会使其可点击。
例如 <a href="#BarChart"><div><span>TreeMap!</span></div></a>
命令: wkhtmltopdf.exe --enable-internal-links D:\A.html D:\test.pdf
任何人都可以在这方面帮助我吗?
----------------------- HTML -----------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css" media="screen,print">
.break{
display: block;
clear: both;
page-break-after: always;
}
</style>
</head>
<body>
<a href="#BarChart"><div><span>TreeMap!</span></div></a>
<div class="break"></div>
<a name="BarChart">nbsp</a>
<a href="#TextChart">Bar Chart!</a>
<div class="break"></div>
<a name="TextChart">nbsp</a>
<a href="#PieChart">Text Chart !</a>
<div class="break"></div>
<a name="PieChart">PieChart</a>
</body>
</html>
- - - - - - - - - - - - 结尾 - - - - - - - - - - - - -