PageSize.getA4().getWidth() //595.0
PageSize.getA4().getHeight() //842.0
QQ图片20220311143037.png (55.5 KB)
The total height is 842, minus the top and bottom margin (25), the content area height should be: 842.0-25.0-25.0 = 792.
Instead, the content area is filled with 10 100px images. How to determine PDF height and image height (PX)?