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
<webview> printToPDF window content scales down in relation to page size if screen Display text/apps setting is greater than 100% #9118
Comments
I think this can be resolved by making all of the key's assigned in Please reference: https://github.com/electron/electron/blob/master/lib/browser/api/web-contents.js Note: I need to wrap up the project that's having this issue and would prefer just modifying the file from my local install, but I haven't been able to find the Electron |
We are no longer implementing bugfixes for versions of Electron <= |
Is |
Using
<webview>.printToPDF()
Expected behavior
PDF content fills entire height/width of print page size (i.e. ratio 1:1)
Actual behavior
Example for screen display scale set at 200% on a Windows Surface Pro 3:
var options = {marginsType: 1, pageSize: "Letter"}
height
andwidth
in microns for the pageSizePDF exports at correct Letter size (8.5in x 11in) but the target content is scaled down 50% (4.25in x 5.5in) on the page.
The text was updated successfully, but these errors were encountered: