Print a one page test document and read the output page size with a PDF info tool. Expected: the tool reports letter size instead of your requested height, confirming the paper size path is the problem.

Check the units of paperWidth and paperHeight in your call. Expected: both values are in inches, so A4 is about 8.27 by 11.69, not 210 by 297.

If you passed millimetres or centimetres, convert to inches and print again. Expected: the output page size matches the requested dimensions.

Set preferCSSPageSize to false in the call, or remove any CSS at page size rule that conflicts with the requested size. Expected: the protocol parameters, not the stylesheet, decide the page size.

Turn off displayHeaderFooter for the test print, since template content can affect layout in some Chrome versions. Expected: the page size stays as requested with headers off, isolating whether templates are involved.

Set margins explicitly in inches on all four sides instead of leaving them unset. Expected: Chrome does not substitute a default page setup.

Print the real document again and verify the page size of every page, not just the first. Expected: all pages report the requested size.