I have a jasper report template, the page size is A4, and now want to print it on B5 paper. What can I do to make the content not print out of the paper.
Jasperreport fit paper size B5
6.6k Views Asked by Kun Wang At
2
I have a jasper report template, the page size is A4, and now want to print it on B5 paper. What can I do to make the content not print out of the paper.
You need to set
pageWidth="501"
andpageHeight="709"
onjasperReport
tagISO 216, as you can see the B5 is 176 × 250 in mm
In jasper report size is indicated in pixel (DPI 72)
The calculation will give width 499, jasper report uses as default 501, considering that the format has a 1,5 mm tolerance, either value will be fine.
Example with margin 20