Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

paperSize #76

Open
DanRamage opened this Issue · 2 comments

3 participants

@DanRamage

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

@michaelklem

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

@markstos

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

tmorozov@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
Something went wrong with that request. Please try again.