Oh and regarding the direct conversion to PDF you can get the pagebreaks there working as well by making the pagebreak elements have display: block . Something like this in extra css
span[role=doc-pagebreak] { display: block; pagebreak-before: always }
|