0
MacOSX에서 wkhtmltopdf 0.11.0_rc1 (이상하게 0.10.0 rc2라고보고 함)을 사용합니다.wkhtmltopdf가 페이지 나누기를 준수하지 않습니다.
이 입력 HTML :
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<style type="text/css">
@page{
size: landscape;
margin: 10mm;
}
div.page {
height: 180mm;
width: 274mm;
overflow: hidden;
border: 1px solid #ddd;
page-break-inside: avoid;
page-break-after: always;
}
</style>
</head>
<body>
<div class="page">Page 1</div>
<div class="page">Page 2</div>
<div class="page">Page 3</div>
</body>
<html>
은과 같이 처리되고 : 없음 페이지 나누기에
wkhtmltopdf --orientation landscape input.html output.pdf
결과 :
을 내가 잘못 뭐하는 거지?