[Bug]: `pagesPerSheet` not respected in `webContents.print()`
Author: pushkin-Created May 2, 2023Updated Sep 17, 2026
Labelsplatform/windowscomponent/printingbug :beetle:stale24-x-y
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
24.1.2
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I expect the pagesPerSheet property on webContents.print to be respected
Actual Behavior
It's not respected
Testcase Gist URL
https://gist.github.com/c532848444ed21c1868c88a2dcda5205
Additional Information
Start the app, print to PDF printer or wherever. Notice pagesPerSheet:2 isn't respected. Only one page per sheet is printed
Source: electron/electron