page1
20 cm
Rectangle:
30x20 cm = 300x200 mm
300 dpi = 300/25.4=11.811 px/mm
==> H: 300*300/25.4=3543 px)
==> V: 200*300/25.4=2362 px)
Page:
32x22 cm = 320x220 mm
300 dpi = 300/25.4=11.811 px/mm
==> H: 320*300/25.4=3780 px)
==> V: 220*300/25.4=2598 px)