To set the size for printing A4
A4 Width = (8 * 96) px Height = (11.5 * 96) px
A3 = just double the width (16 * 96) px
Do not forget about the border of the printer, but A4 will always print above
I know that everything nowadays is a metric, but math is easier to use inches.,.
A4 = 297 mm * 210 mm, but also 8 "* 11.5", so the above math works!
source share