My problem is I’m creating table in bookmark place in .docx file its display dynamic table in .docx file but when I convert .docx file to PDF it doesn’t display dynamic table in PDF. i use (docx4j 2.8.1).
Its my code.
Much appreciated,
private void createTableInTemplate()throws Exception{
InputStream is = new FileInputStream(new File("c:\example.docx"));
wordMLPackage = WordprocessingMLPackage.load(is);
final String xpath = "//w:bookmarkStart/..";
List objects = wordMLPackage.getMainDocumentPart().getJAXBNodesViaXPath(xpath, false);
P para = (P)XmlUtils.unwrap(objects.get(0));
Tbl tbl = createTable();
R ...