CTPageBreak rowBreaks = sheet.worksheet.getContents().getRowBreaks();
if (rowBreaks != null && rowBreaks.getBrk() != null) {
rowBreaks.getBrk().clear();
}
} catch (Docx4JException e) {
throw new ReportFormattingException("An error occurred while clearing docx4j workbook", e);
}
}
workbook.getDefinedNames().getDefinedName().clear();
}