Fix non-multiple-of-8 widths.
Fix custom paper size dimensions to match Windows driver.