Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

paperSize #76

Open
DanRamage opened this Issue Nov 8, 2013 · 2 comments

Comments

Projects
None yet
3 participants

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

Have you tried something like this:
page.set('paperSize',{format: 'Letter', orientation: 'landscape'},function(err){});

markstos commented Mar 3, 2014

There's an unmerged pull request that adds paper size support. See here:

tmorozov/node-phantom@a0f3de6

I've haven't tested it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment