electron: [Bug]: pageSize not work when silent print on windows 10
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 feature request that matches the one I want to file, without success.
Electron Version
16.0.0-beta.6
What operating system are you using?
Windows
Operating System Version
windows 10
What arch are you using?
x64
Last Known Working Electron version
none
Expected Behavior
pageSize works when silent print.
Actual Behavior
webContents.print({silent:true, pageSize: 'A5'})
pageSize not works when silent print. it always use printer default pageSize.
other print options has been fixed, except pageSize.
Testcase Gist URL
No response
Additional Information
No response
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 43 (1 by maintainers)
@codebytere, Yes, you’re gonna get pinged constantly because you’re assigned to this issue. So pinging you again, can we get this fixed because it works completely fine on Chromium. This is not a small issue. Electron apps are made for desktop and a lot of those desktop tasks require printing. How this issue gets ignored is beyond my imagination.
I think this is related to the print driver(all the ones with the red lines are affected). It doesn’t seem like there is any way to workaround the issue currently.
Test Gist: https://gist.github.com/sunchanglong/7c307aeb031e823ed8273ae44e861d45
My printer support both A4, A5 papers.
Print task queue
I’m aware, hence the “fyi” part.
This issue has been left over for many years, and if it is consistently marked as Does Not Block Stable, then this issue will never be resolved @codebytere @dsanders11
Also experiencing the same issue with 25, 24 working perfect
electron@24.7.1 respects custom pageSize, but then v25 presents with the bug described in #39179
It is unbelievable that a problem lasted so long. Neither was fixed.
@codebytere, @ckerr, @nornagon can one of you please look into this issue? I don’t get why this is being ignored for such a long period of time. This issue was there since forever and it’s undeniably a most needed feature for desktop applications.
Yes, I’ve also confirmed paper size is correctly being respected in Chrome when printing to those affected printers.
Just tested this and can confirm. These settings are being completely ignored when printed to non-emulated devices. @codebytere, @nornagon can we get some assistance on this? Printing is such a vital task for a majority of Electron apps. I truly hope this can be addressed soon because since #31489 I’ve written thousands of lines of code around this whole functionality without the knowledge of this being an issue.