2014-11-24 3 views
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 

결과 :

output pdf

을 내가 잘못 뭐하는 거지?

답변

0

이것은 wkhtmltopdf의이 특정 버전의 문제 일 수 있습니다.

최신 버전 wkhtmltopdf 0.12.1 (with patched qt)은 페이지 나누기와 관련이 있습니다.

관련 문제