If you have a PDF, do the following:
- Convert PDF to image.
- Divide the header and footer into two images.
- Put the images in the background range.
There are several ways to convert the image and some details:
- Use a high resolution image (600 dpi).
- Use ImageMagick to automate the process.
- , .
- PNG ( JPEG) .
, PDF. PDF , JasperReports.