DIV with absolute positioning and big height ( > 1000px ) starts at the middle of the first page ( in the PDF result doc ) and should appear on the second page. I made a simple html file and put the code below:
>prince ~/work/sample.html sample.pdf
Gives div with red border on the first page only . Result pdf attached.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sample</title>
</head>
<body>
<div style="position:relative;overflow: visible;">
<div id="bg_container" style="position:absolute;width:20%;!important;border: 3px solid red;height: 2000px;">
text inside the div
</div>
<div>
</body>
</html>
>prince ~/work/sample.html sample.pdf
Gives div with red border on the first page only . Result pdf attached.