Nested tables insert whitespace between rows

19 views
Skip to first unread message

Adam Bísek

unread,
Jun 29, 2015, 3:56:11 AM6/29/15
to phan...@googlegroups.com
I have following HTML code:

And phantomJs inserts this whitespace:

Almost no styles is on page, and I believe this problem is not about styles.
When is remove parent table - remove lines 23-26 and 230-233 in HTML (https://gist.github.com/enlilcz/4c8baf50f35838ed5bb2)
whitespace just dissapear (but I need it).

PhantomJs settings is:
{
  • outputFormat"pdf",
  • html"myHTML",
  • version2,
  • phantomParams
    {
    • paperSize
      {
      • format"A4",
      • margin"0px"
      }
    }
}

Does anyone knows where is the problem?


Adam Bísek

unread,
Jun 29, 2015, 4:15:40 AM6/29/15
to phan...@googlegroups.com
And when I substitute paperSize to 
viewportSize: {
   'width': 2750, // or any other  dimensions

   'height': 3850

}

it also starts work. But I need to use paperSize...
Reply all
Reply to author
Forward
0 new messages