Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: print options should include a way to select paper feed #33190

Closed
3 tasks done
JoeABCDEF opened this issue Mar 8, 2022 · 4 comments
Closed
3 tasks done

feat: print options should include a way to select paper feed #33190

JoeABCDEF opened this issue Mar 8, 2022 · 4 comments

Comments

@JoeABCDEF
Copy link

Preflight Checklist

Problem Description

What is the function of this PageSize? Is it set to directly change the paper selected by the printer? Is it just used to constrain DOM?
image

Proposed Solution

I hope there is a way to change the printer paper

Alternatives Considered

none

Additional Information

No response

@ckerr ckerr changed the title webview.print -> options -> pageSize feat: print options should include a way to select paper feed Mar 9, 2022
@ckerr
Copy link
Member

ckerr commented Mar 9, 2022

pageSize is an optional width and height in microns. When a custom pageSize is passed, Chromium attempts to validate platform specific minimum values for width_microns and height_microns. Width and height must both be minimum 353 microns but may be higher on some operating systems.

From looking at the code, it doesn't appear to me to affect the choice of paper feed. (However I don't physically have a dual-feed printer to test this with.)

@JoeABCDEF
Copy link
Author

@ckerr After I set PageSize, won't he change the paper in this place? Can I override the default paper size
image

@sunchanglong
Copy link

sunchanglong commented Mar 31, 2022

#31705

@codebytere
Copy link
Member

pageSize is an optional width and height in microns. When a custom pageSize is passed, Chromium attempts to validate platform specific minimum values for width_microns and height_microns. Width and height must both be minimum 353 microns but may be higher on some operating systems.

correct from @ckerr here. Chromium does not give us the option to specify paper feed, and as such this isn't something we'll be able to implement more then we do with existing options.

@codebytere codebytere closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants