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

printWindow.webContents.print({ silent: true })[Help] the title of help wanted report #475

Closed
spriteApe opened this issue Mar 26, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@spriteApe
Copy link

Describe the problem you confuse

使用这个架子去做一个打印功能
调用API方式为:
printWindow.webContents.print({ silent: true })
目标打印机为:
Microsoft Print to PDF
结果:
打印出来的PDF会有缩放问题
image

调用API方式改为:
printWindow.webContents.print()
结果:
不传参打印就没问题。
image

@spriteApe spriteApe added the help wanted Extra attention is needed label Mar 26, 2024
@RSS1102
Copy link
Member

RSS1102 commented Mar 27, 2024

看起来是上游electron的问题,你可以在electron内继续追踪解决方法。Hubertformin/electron-pos-printer#113

@RSS1102 RSS1102 closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants