I have to convert a docx file generated using (docx4j) to XHTML. Can you please share the code/point me to the same for accomplishing this ?
Thanks,
Goutham
It is currently Sun Jan 12, 2025 1:05 pm
// Add a table
int writableWidthTwips = wordMLPackage.getDocumentModel().getSections().get(0).getPageDimensions().getWritableWidthTwips();
int cols = 5;
int cellWidthTwips = new Double(Math.floor((writableWidthTwips/cols))).intValue();
Tbl tbl = TblFactory.createTable(1, 5, cellWidthTwips);
wordMLPackage.getMainDocumentPart().addObject(tbl);
Total posts 10116 • Total topics 2845 • Total members 2076