How to use an existing PDF in JasperReports

I have a PDF with a header and footer. I have to print my reports on this "electronic form". How can i do this? Do I need to use third-party libraries? Is there a better approach (instead of modifying an existing PDF) to achieve this?

+3
source share
1 answer

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.

+2

All Articles