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

[Bug]: A6 not accepted as pageSize in settings of webContents.print #37127

Closed
3 tasks done
joannaFlw opened this issue Feb 3, 2023 · 0 comments · Fixed by #37159
Closed
3 tasks done

[Bug]: A6 not accepted as pageSize in settings of webContents.print #37127

joannaFlw opened this issue Feb 3, 2023 · 0 comments · Fixed by #37159

Comments

@joannaFlw
Copy link

Preflight Checklist

Electron Version

22.2.0

What operating system are you using?

macOS

Operating System Version

Ventura 13.0.1

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

web content.print to accept A6 as pageSize in settings

Actual Behavior

throwing an error : Error: Unsupported pageSize: A6
at _.print (node:electron/js2c/browser_init:2:76160)

Testcase Gist URL

No response

Additional Information

You need to add in this file electron/lib/browser/api/web-contents.ts, to the constant PDFPageSizes the A6 configuration

@joannaFlw joannaFlw changed the title [Bug]: [Bug]: A6 not accepted as pageSize in settings of web content.print Feb 3, 2023
@joannaFlw joannaFlw changed the title [Bug]: A6 not accepted as pageSize in settings of web content.print [Bug]: A6 not accepted as pageSize in settings of webContents.print Feb 3, 2023
@codebytere codebytere self-assigned this Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants