It is currently Sat Jun 28, 2025 9:40 pm
<simple-page-master margin-bottom="0.5in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in" master-name="s1-simple" page-height="11in" page-width="8.5in">
List<Object> paragraphs = getAllElementFromObject(template.getMainDocumentPart(),P.class);
for(Object objP:paragraphs) {
P para = (P) objP;
/***/
List<Object> texts = getAllElementFromObject(para,Text.class);
List<Object> brs = getAllElementFromObject(para,Br.class);
if(brs.size()==1 && checkPageBreak((Br)brs.get(0)) && texts.size()== 0)
remove(template.getMainDocumentPart().getContent(), para);
}
org.docx4j.openpackaging.exceptions.Docx4JException: No xpathStorageItemId found, does the document contain content controls that are bound?
Total posts 10181 • Total topics 2864 • Total members 2095