I'm using wkhtmltopdf 0.10.0 rc2 for Mac
I have an html like this one :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="print.css" rel="stylesheet">
<style type="text/css" media="screen,print">
.break{
display: block;
clear: both;
page-break-after: always;
border :1px solid red
}
.page-breaker {
display: block;
page-break-after: always;
border :1px solid red
}
</style>
</head>
<body>
<div class="container break">
page 1
</div>
<div class="page-breaker"></div>
<div class="container">
page 2
</div>
</body>
</html>
I simply try :
wkhtmltopdf test.html test.pdf
But it didn't produce a page-break, I doing something wrong ?
wkhtmltopdf 0.11.0 rc2
here as well (Win 7). – Knorringwkhtmltox-0.11.0_rc1-installer.exe
From code.google.com/p/wkhtmltopdf and install it and then runwkhtmltopdf.exe --version
I getwkhtmltopdf 0.11.0 rc2
. So that's the version I meant. Sorry for the confusion, but I don't know what to call the version :) – Knorringwkhtmltopdf 0.11.0 rc1
on Debian GNU/Linux. – Mcgraw