This post could help you, or could explain why it is not going to work: Printing to PDF with good header and footer