InsertBreakContinuous gives different result in .odt and .docx

Hello,
I’m using aspose.words Java and I create a word document through DocumentBuilder.
I have a piece of code that wants to change margins on the second page via section, here it is extract:

m_DocumentBuilder.insertBreak(BreakType.SECTION_BREAK_CONTINUOUS);

Section docSection = m_DocumentBuilder.getCurrentSection();
docSection.getPageSetup().SetTopMargin(72);
docSection.getPageSetup().SetBottomMargin(72);
docSection.getPageSetup().SetLeftMargin(72);
docSection.getPageSetup().SetRightMargin(72);

The created document is correct if it is created as .docx format, it is not if created as .odt.
Is there another solution that works fine in both cases?
The constraint is that I don’t want to insert a real page break, but only give information that the new section should bring new margins. Attached a zip with the two resulting documents for same code.
DocbuilderTest.zip (8.6 KB)

Thank you.
Best regards

@renato.mauro

Thanks for your inquiry. We have tested the scenario and noticed the reported issue. We have logged a ticket WORDSNET-15987 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

@renato.mauro

Thanks for your patience. We have investigated above reported issue and found it is not Aspose.Words bug but ODT format limitation. It seems ODT format does not support different page margins for different sections. We have checked the options inside OpenOffice and LibreOffice and could not find any option related to your requirement. So we are going to close this issue as not a bug.