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

PDF以A3的格式横向打印不出来 --pageSize '{"width":2250,"height":1540}'无法识别 #219

Open
weiwenhai opened this issue Mar 29, 2018 · 1 comment

Comments

@weiwenhai
Copy link

No description provided.

@guangmingwan
Copy link

pageSizeObj.width = 2250 / 89.0 * 25400; // 这个dpi应该是96,但是可能谷歌pdf的bug,89刚好充满1页,96就会生成两页。
pageSizeObj.height = 1540 / 89.0* 25400;
var pageSize = JSON.stringify(pageSizeObj) // 单位是微米 microns
const jobOptions = {
inMemory: false
}
const options = {
pageSize: pageSize,
browserConfig: JSON.stringify( { enableLargerThanScreen:false} )
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants