docx4j-ImportXHTML icon indicating copy to clipboard operation
docx4j-ImportXHTML copied to clipboard

page break support

Open plutext opened this issue 10 years ago • 6 comments

a div '

' in the XHTML should be treated as a page break.

plutext avatar Nov 28 '14 00:11 plutext

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ó

laszlocseko avatar Apr 21 '17 08:04 laszlocseko

best to send a pull request please

plutext avatar Apr 21 '17 08:04 plutext

@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 avatar Sep 12 '17 05:09 chanjarster

@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ó

csekol avatar Oct 09 '17 07:10 csekol

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?

ncjelu avatar Nov 26 '19 10:11 ncjelu

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>

ghost avatar Feb 20 '20 16:02 ghost