[Bug]: webContents.print({silent:true, landscape:true}) missing header and cut off footer and content #40714
Closed
3 tasks done
Labels
28-x-y
bug 🪲
component/printing
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/windows
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
28.0.0
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
Unknown
Expected Behavior
When call webContents.print({silent:true, landscape:true}) with passed in header footer, the header footer should print and not cut off content.
Actual Behavior
When calling webContents.print({silent:true, landscape:true}) with passed in header footer, the header is missing when printing to certain printer drivers. It also cuts off the half footer.
Noticed this when printing to "Kyocera Classic Univeraldriver PCL6"
and "Canon TS6400 driver"
Testcase Gist URL
https://gist.github.com/Hedwig188/726673d5ae337419dbbacee3d62c4fcf
Additional Information
See the above TestCase Gist to reproduce the issue. This seems to happen in Electron v24 and v26 as well. Other printers seem to work fine.
The text was updated successfully, but these errors were encountered: