0
votes

I am using PhantomJS for converting html file into png. Actually, my html file is bit lengthier in horizontal way.PhantomJs do not capture its image entire up to last horizontal scroll.I'm using render command for converting html into png.What exactly I am missing or is there any limitation phantomJS has ?

2

2 Answers

0
votes

Did you set an appropiate window size (viewport)? From this example:

var page = require('webpage').create();
page.viewportSize = { width: 320, height: 480 }; // <============
page.open('http://news.google.com/news/i/section?&topic=t', function (status) {
 ...