Attached the document we use as a template for variable replacement.
- Code: Select all
- WordprocessingMLPackage wordMLPackage;
 try {
 wordMLPackage = WordprocessingMLPackage.load(template);
 MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
 
 Document wmlDocumentEl = documentPart.getJaxbElement(); // failing on this line with several NumberFormatExceptions
 Body body = wmlDocumentEl.getBody(); // wmlDocumentEl is null
 
Will adding the margins to docx4j.properties work or should I handle it with custom-preprocessor.xslt?
Thanks!


 
  News
 News Site map
 Site map SitemapIndex
 SitemapIndex RSS Feed
 RSS Feed