Page 1 of 1

Docx4J get header/footer elements from docx file and modify

PostPosted: Tue Jul 02, 2013 1:01 am
by vixmemon
I am using Docx4J to modify docx templates and put values in place of placeholders in the template that are predefined.

so far, i had been successful in finding and replacing paragraphs and texts, tables, images etc. But i am not yet successful in finding Header and/or Footer elements of the document.

I am using

WordprocessingMLPackage wordMLPackage =
WordprocessingMLPackage.load(new java.io.File(inputfilepath));
wordMLPackage.getMainDocumentPart();
to search for elements in the template.

Re: Docx4J get header/footer elements from docx file and mod

PostPosted: Tue Jul 02, 2013 7:02 pm
by jason