Open DanRamage opened 10 years ago
Have you tried something like this: page.set('paperSize',{format: 'Letter', orientation: 'landscape'},function(err){});
There's an unmerged pull request that adds paper size support. See here:
https://github.com/tmorozov/node-phantom/commit/a0f3de61450332fc47eb6f077022c1bb1a44fc36
I've haven't tested it myself.
When trying to create a node-phantom version of the rasterize.js from phantom.js, there is no paperSize attribute available in node-phantom. Is there a way to set the page size for the PDF?
Dan