javascript - PhantomJS skip header on first page -
i want remove header first page , have header defined as:
header = { height: header_height, contents: phantom.callback(function(pagenum, numpages) { if(pagenum == 1) { return ""; } return header_contents; }) }; but lefts empty margin header_height. there way set header.height=0 first page?
you can't set margin first page. can include css style on first page phantomjs respects css margin
Comments
Post a Comment