wicked_pdf
gem을 통해 wkhtmltopdf
(11.0_rc1)을 사용하고 있습니다. 다중 열 레이아웃이 페이지 나누기와 잘 작동하지 않는다는 사실을 알고 있습니다.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