* @see org.apache.poi.xwpf.extractor.XWPFWordExtractor#getText()
*/
@Override
protected void buildXHTML(XHTMLContentHandler xhtml)
throws SAXException, XmlException, IOException {
XWPFDocument document = (XWPFDocument) extractor.getDocument();
XWPFHeaderFooterPolicy hfPolicy = document.getHeaderFooterPolicy();
// headers
extractHeaders(xhtml, hfPolicy);
// first all paragraphs
Iterator<XWPFParagraph> i = document.getParagraphsIterator();
while (i.hasNext()) {
XWPFParagraph paragraph = i.next();
CTSectPr ctSectPr = null;
if (paragraph.getCTP().getPPr() != null) {