electron-pdf icon indicating copy to clipboard operation
electron-pdf copied to clipboard

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

Open weiwenhai opened this issue 6 years ago • 1 comments

weiwenhai avatar Mar 29 '18 03:03 weiwenhai

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} ) }

guangmingwan avatar Nov 08 '18 15:11 guangmingwan