docx4j-ImportXHTML
docx4j-ImportXHTML copied to clipboard
page break support
a div '
' in the XHTML should be treated as a page break.
Hi,
I am using docx4j to convert xhtml to docx. I needed page-break support, so have implemented a basic support for it (only supports page-break-before:always and page-break-after:always). What is the way for sharing it with you? Should I send a patch file?
Cheers, László
best to send a pull request please
@laszlocseko I'm glad to know you have implemented page-break support. When would you like to pull request? I need page-break support too. Thank you very much.
@chanjarster I have already created a pull request for it. @plutext Could you please review and merge it if it is ok? here is the pull request: https://github.com/plutext/docx4j-ImportXHTML/pull/30 BR, László
Hi,
We are currently working with Docx4J-ImportXHTML on a project, and we would really appreciate having this feature! Would it be possible to merge it and get it into a release soon?
I managed to add page break by defining a CSS class and then applying it to a p
like
<style>
.page-break {
page-break-before: always;
}
.
.
.
</style>
<p class="page-break">Lorem Ipsum is simply dummy text of the printing and typesetting industry....</p>