@ Programmatic public WordprocessingMLPackage loadPackage ( final InputStream docxTemplate ) throws LoadTemplateException { final WordprocessingMLPackage docxPkg ; try { docxPkg = WordprocessingMLPackage . load ( docxTemplate ) ; } catch ( final Docx4JException ex ) { throw new LoadTemplateException ( "Unable to load docx template from input stream" , ex ) ; } return docxPkg ; }
Load and return an in - memory representation of a docx .