OfficeParserConfig control extraction from shapes from DOCX
@@ -290,9 +290,11 @@ public class XWPFWordExtractorDecorator extends AbstractOOXMLExtractor {
}
// Also extract any paragraphs embedded in text boxes:
+ if (config.getIncludeShapeBasedContent()) {
for (XmlObject embeddedParagraph : paragraph.getCTP().selectPath("declare namespace w='http://schemas.openxmlformats.org/wordprocessingml/2006/main' declare namespace wps='http://schemas.microsoft.com/office/word/2010/wordprocessingShape' .//*/wps:txbx/w:txbxContent/w:p")) {
extractParagraph(new XWPFParagraph(CTP.Factory.parse(embeddedParagraph.xmlText()), paragraph.getBody()), listManager, xhtml);
}
+ }
// Finish this paragraph
xhtml.endElement(tag);
