Edit Width of Thermal Receipt Jasper Report

Problem

Need to edit the dimensions of a thermal receipt that is used in cash point machines. The dimensions I got for the paper were 57X47X13. These dimensions are in mm.

The important thing to note is 57mm is the width.

Solution

Change the jrxml dimesions from Pixels to mm. Then Change the width of the report to 57mm.

Then edit the text fields dimensions accordingly.

Here’s a screenshot of the report:

thermal receipt on jasper reports
Thermal receipt on Jasper Reports

References

THERMAL ROLL 57X40X13MM