How to resize HTML to fix Doc

Mac OS 10.14.4
java version “1.8.0_181”
Java™ SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot™ 64-Bit Server VM (build 25.181-b13, mixed mode)
Aspose: aspose-words-19.7

       Document document = new Document("html path ");
       OoxmlSaveOptions saveOptions = new OoxmlSaveOptions(SaveFormat.DOCX) ;
       if (fileOutputStream != null) {
 "docx output file ", saveOptions);
       } (154.1 KB)


Please use the following code example to fit the table in the page. Hope this helps you.

Document document = new Document(MyDir + "test.html");
for (Table table : (Iterable<Table>) document.getChildNodes(NodeType.TABLE, true))

OoxmlSaveOptions saveOptions = new OoxmlSaveOptions(SaveFormat.DOCX); + "output.docx", saveOptions); (147.8 KB)
Not so good


You may change the orientation of page as landscape or increase the the page’s width to get the correct output.