Hello Community o/
I have an .odt
document that contains the string [Tag]
which I replace with HTML code that contains some bullet points.
I use java and the LibreOffice API/framework. insertTransferable
from XTransferableSupplier
.
It works, but the replacement text gets pushed to the second page.
It seems that the style:style
for the first bulletpoint get those parameters applied: style:master-page-name="HTML"
If I open up the output .odt
and remove the style by hand everything seems to work.
- Is that by design or is it a bug?
- How can I stop this behavior?
I have a sample code here: GitHub - lord-carlos/libreOfficeMerger
The important merge code is in the class: HTMLTagReplacer.java
src/main/resources/ contains a before and after .odt file.