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

Print the document WebView The print - > PageSize document is ambiguous #33097

Open
3 tasks done
JoeABCDEF opened this issue Feb 28, 2022 · 10 comments · May be fixed by #34088
Open
3 tasks done

Print the document WebView The print - > PageSize document is ambiguous #33097

JoeABCDEF opened this issue Feb 28, 2022 · 10 comments · May be fixed by #34088
Labels

Comments

@JoeABCDEF
Copy link

@JoeABCDEF JoeABCDEF commented Feb 28, 2022

Preflight Checklist

Problem Description

image
image

The unit of width and height is not clear. I don't know whether it should be Px, cm or mm

Proposed Solution

hope you can clarify the unit data of what to wear

Alternatives Considered

none

Additional Information

No response

@Hedwig188
Copy link

@Hedwig188 Hedwig188 commented Mar 1, 2022

It should be microns base on the below documentation.
image

@ckerr ckerr added documentation 📓 pr welcome status/confirmed good first issue labels Mar 2, 2022
@Aman0307
Copy link

@Aman0307 Aman0307 commented Mar 22, 2022

@Shofiya2003
Copy link

@Shofiya2003 Shofiya2003 commented Mar 27, 2022

This issue requires addition of a unit to the height and width in the documentation.Right? Should it be pixels or microns?

@google539
Copy link

@google539 google539 commented Mar 29, 2022

YouTube-Restrict: Strictสำรวจการเข้าใช

@google539
Copy link

@google539 google539 commented Mar 29, 2022

ความกว้างในเอกสารประกอบใช่ไหม ควรเป็นพิกเซลหรือไมครอน?

@google539 google539 แสดงความคิดเห็น

@sebastianlacuesta
Copy link

@sebastianlacuesta sebastianlacuesta commented Apr 6, 2022

I'm trying to print to a 100x150mm sheet (similar to A6 and 4x6in but not identical). If I use pageSize: { width: 105000, height: 148000 } then I'm able to print but image it's all pixelated. If I don't specify size, printer gets an error and gets freezed. Then I need to turn off the printer and on later to be able to print.

@rajpatel17-bot
Copy link

@rajpatel17-bot rajpatel17-bot commented Apr 16, 2022

Hey can anyone explain a little bit more about this issue. I couldn't understand it properly. Plz explain me.... Thanks

@Anirudh-2628
Copy link

@Anirudh-2628 Anirudh-2628 commented Apr 19, 2022

Can you Explain more about your problem?

@chahatjl
Copy link

@chahatjl chahatjl commented Apr 21, 2022

We can try using all the units like(Px,cm,mm) and then check which is more accurate or more appealing and go for that unit

@mkiki01
Copy link

@mkiki01 mkiki01 commented May 4, 2022

The documentation for <webview> tag here: webview docs, states that the print() method is the same as the webContents module print() method. The documentation for that is here: webContents docs which states the following: 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.

To answer your issue; the unit is microns.

@mkiki01 mkiki01 linked a pull request May 5, 2022 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.