Okay - I've been a bit slow to get all this together but it's working
like a treat so I thought that I'd share.
This is the basic structure of the HTML and CSS to produce a mulitpage
PDF doc with a cover sheet using pisa.
This CSS shows two page templates defined, the first one is for the
cover page the only thing printed on this page is the first <h1> tag
ust below the body tag in the html example.
The <pdf:nexttemplate name="maintmpl"> tag then tells pisa to use the
next page template defined in the CSS '@page maintmpl' this is the
template used for the rest of the document. I have also added a footer
that add page numbers to the bottom of each page.
Anyway I hope this helps other newbies get to grips with pisa nice and
quickly - a very useful bit of software.
CSS :
@page {
background-image: url('Cover.jpg');
top: 14cm;
left: 2cm;
right: 2cm;
height: 2cm;
}
@page maintmpl {
size: a4 portrait;
margin: 1cm;
margin-bottom: 2.5cm;
@frame footer{
-pdf-frame-content: footerContent;
bottom: 1cm;
margin-left: 1cm;
margin-right: 1cm;
height: 1cm;
}
}
HTML doc :
<html>
<body>
<h1> This is the cover page</h1>
<div>
<pdf:nexttemplate name="maintmpl">
</div>
<div>
<pdf:nextpage />
</div>
<--html page 1 -->
<div>
<pdf:nextpage />
</div>
<--html page 2 -->
<div>
<pdf:nextpage />
</div>
<--html page 3 -->
<div>
<pdf:nextpage />
</div>
<div id="footerContent">
<table class="borderless">
<tr>
<td>Customer No. 417</td><td><span id="page-num">
<pdf:pagenumber>
</span></td>
</tr>
</table>
</div>
</body>
</html>