Macos wkhtmltopdf不支持在

Macos wkhtmltopdf不支持在,macos,webkit,wkhtmltopdf,Macos,Webkit,Wkhtmltopdf,在MacOSX上使用wkhtmltopdf 0.11.0rc1奇怪地将自己报告为0.10.0 rc2 此输入HTML: <!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="content-type" /> <style type="text/css"> @page{

在MacOSX上使用wkhtmltopdf 0.11.0rc1奇怪地将自己报告为0.10.0 rc2

此输入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的问题

最新版本的wkhtmltopdf 0.12.1(带有补丁qt)不考虑分页符

wkhtmltopdf --orientation landscape input.html output.pdf