python - wkhtmltopdf adds extra spacing when multiple width, height : 100% elements -


i'm using wkhtmltopdf via subprocess generate pdfs in python flask web app. works great html input give, applies weird formatting in cases. cases, need append html block 5 times. in case, pdfs generated contain multiple blank pages in between content (which rather not have).

the format of html provide following:

<body>     <center>         <table height="100%" width="100%" id="backgroundtable" style="         height: 100%;         width: 100%;">                <!-- more content -->         </table>     </center> </body> 

i have found culprits height="100%" width="100%" , style="height: 100%; width: 100%;" calls <table> element.

does know why cause issue?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -