pqzx / html2docx

Convert html to docx
MIT License
69 stars 49 forks source link

Addin page breaks? #31

Open tmbb opened 2 years ago

tmbb commented 2 years ago

I'm using html2docx to generate parts of scientific papers by replacing values in Jinja2 templates. That is, I write a jinja2 template in HTML and insert values generated from code (either literal text in a paragraph or table or entire tables or figures; I even have a rudimentary reference management system for this). It would be useful if I could add pagebreaks somehow.

I believ the semantically correct way of adding page breaks to HTML would be something like the following:

<p style="page-break-after: always;">&nbsp;</p>

What do you think about adding this? I can work on it.

pqzx commented 2 years ago

Sorry for the slow reply. Happy for you to add this.

unknowncoder05 commented 2 years ago

also needing this