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

DanRamage opened this Issue Nov 8, 2013 · 2 comments


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?


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:


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