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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -