plutext / docx4j-ImportXHTML

Converts XHTML to OpenXML WordML (docx) using docx4j
135 stars 124 forks source link

added support page-break-before:always and page-break-after:always #95

Open fnicollet opened 1 year ago

fnicollet commented 1 year ago

Following this outdated PR: https://github.com/plutext/docx4j-ImportXHTML/pull/30

This PR implements the changes @hydra1983 added in his comment, but changed CSSValue to PropertyValue as the code seems to have evolved since then. Tested OK on my side (using Java 8), it would be nice to have a released version of the 8.x branch containing this patch. It should also be cherry-picked in the 11.x branch

Thanks, Fabien