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
Post a Comment