我正在使用wkhtmltopdf
(11.0_rc1)通过wicked_pdf
宝石。我注意到多列布局不能很好地利用分页符。wkhtmltopdf:分页符和多列布局不起作用
我也注意到CentOS(在Heroku上)和Windows之间的行为不一样。在Windows中,分页符在某些情况下可以使用。
你以前遇到过这样的问题吗?任何帮助,高度赞赏。
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type='text/css'>
.page {
page-break-after:always !important;
clear:both;
display:block;
}
#content {
width: 800px;
}
</style>
</head>
<body>
<div id="content">
<div class="page">
<div style="float:left;width:200px;">
DESCRIPTION 1
</div>
<div style="float:left;">
PIE CHART IMAGE 1
</div>
</div>
<div class="page">
<div style="float:left;width:200px;">
DESCRIPTION 2
</div>
<div style="float:left;">
PIE CHART IMAGE 2
</div>
</div>
<div class="page">
<div style="float:left;width:200px;">
DESCRIPTION 3
</div>
<div style="float:left;">
PIE CHART IMAGE 3
</div>
</div>
</div>
</body>
</html>
这并不能解决任何问题。 – Trip 2013-06-25 15:58:01