Rendering very wide content


I am using phantomJS to render a very wide HTML page as a PDF. When it generates the PDF, it clips the content that is wider than the 8.5x11 page. How do I prevent it from clipping the page without having to adjust the zoom?


Send me the link to the webpage you are interested in, and I will have a look for you…

I have found the the page.viewportSize = { width: 1600, height: 600 }; statement tends to do “other things” when the width and height parameters are parsed with the command line. However, I may be mistaken…



The content is generated via a webpage behind a security wall. The link below is to an html file on a google drive. This file is passed to Phantonjs in order to generate a PDF.

Sample Wide HTML File.


Hi Jay,

I’m sorry, but I can’t seem to open that html page. It just comes up in HTML script and not s web page…