In the XML input to Prince shown below the intent is to have a header with an image on the right. The image is a logo which is supplied to the system that generates the input to Prince at run time. The dimensions of the logo can vary - in the case below the logo is tall enough to overlap the heading in the table in the main body. Is there a recommended way to keep the header and body separate?
<html>
<head>
<style>
@page {
margin: 1.05in .5in .25in .5in;
size: A4 landscape;
@top-left { content: flow(header); }
prince-shrink-to-fit: auto;
}
div.prince_header { flow: static(header); background-repeat: no-repeat; background-position: right; }
div.prince_header span { line-height: 25pt; }
div.prince_header img { prince-image-resolution: 124dpi; float: right; padding-top: 20px; }
</style>
</head>
<body class="landscape">
<div class="prince_header">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAB8CAIAAABFSKPuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIaSURBVHhe7daxTStBFEBRx0RkPyEhcg80QA8UQEYNboFqaIZi+F4bvPYabearETqjE73Ry65md/O128Kt6YyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojMJQnT2+P2xeXxbD7dfbv6fNfJ6eH1duL9bXFwkN39nL/T6ReXhIZy5mcbt7eN3cf/x6tVikNXhn02QZxxTQMaZ9VVddfltfpDZ2Z9MjdPf+djaZ7PM6DFe6WV+8GFIYv7Prkn6esbPOPp/vpl+w6Rwm64vLOTf3t96z08R7NpjB/89+e4HmvK5uV64ubqkN3tnxg3j2CE0P1fyDf/xczitnJa0vEhuus7PzU8lUz+lcffgOAZ3ORUnri4SG6ow/S2cUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdMbt7bb/AaDnuiXUQy1aAAAAAElFTkSuQmCC"/>
<span class="line1">Heading</span>
<br/>
<span>Sub Heading</span>
<br/>
</div>
<table style="width:100%;border-width: 1px 1px 1px 1px; border-style: solid;">
<thead>
<tr>
<td>Heading1</td>
<td>Heading2</td>
<td>Heading3</td>
<td>Heading4</td>
<td>Heading5</td>
<td>Heading6</td>
<td>Heading7</td>
<td>Heading8</td>
</tr>
</thead>
</table>
</body>
</html>
<html>
<head>
<style>
@page {
margin: 1.05in .5in .25in .5in;
size: A4 landscape;
@top-left { content: flow(header); }
prince-shrink-to-fit: auto;
}
div.prince_header { flow: static(header); background-repeat: no-repeat; background-position: right; }
div.prince_header span { line-height: 25pt; }
div.prince_header img { prince-image-resolution: 124dpi; float: right; padding-top: 20px; }
</style>
</head>
<body class="landscape">
<div class="prince_header">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAB8CAIAAABFSKPuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIaSURBVHhe7daxTStBFEBRx0RkPyEhcg80QA8UQEYNboFqaIZi+F4bvPYabearETqjE73Ry65md/O128Kt6YyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojILOKOiMgs4o6IyCzijojMJQnT2+P2xeXxbD7dfbv6fNfJ6eH1duL9bXFwkN39nL/T6ReXhIZy5mcbt7eN3cf/x6tVikNXhn02QZxxTQMaZ9VVddfltfpDZ2Z9MjdPf+djaZ7PM6DFe6WV+8GFIYv7Prkn6esbPOPp/vpl+w6Rwm64vLOTf3t96z08R7NpjB/89+e4HmvK5uV64ubqkN3tnxg3j2CE0P1fyDf/xczitnJa0vEhuus7PzU8lUz+lcffgOAZ3ORUnri4SG6ow/S2cUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdEZBZxR0RkFnFHRGQWcUdMbt7bb/AaDnuiXUQy1aAAAAAElFTkSuQmCC"/>
<span class="line1">Heading</span>
<br/>
<span>Sub Heading</span>
<br/>
</div>
<table style="width:100%;border-width: 1px 1px 1px 1px; border-style: solid;">
<thead>
<tr>
<td>Heading1</td>
<td>Heading2</td>
<td>Heading3</td>
<td>Heading4</td>
<td>Heading5</td>
<td>Heading6</td>
<td>Heading7</td>
<td>Heading8</td>
</tr>
</thead>
</table>
</body>
</html>