I am loading an html document and setting in HtmlLoadOptions a page size with width 8.5 inches and height 11 inches. I set this with points like so:
PageInfo pageInfo = new PageInfo();
pageInfo.setHeight(792.0);
pageInfo.setWidth(612.0);
MarginInfo marginInfo = new MarginInfo();
marginInfo.setTop(72.0);
marginInfo.setLeft(72.0);
pageInfo.setMargin(marginInfo);
htmlLoadOptions.setPageInfo(pageInfo);
While the height is correct the width is ignored because the width of the html table
passed in is greater. I need to force the page to obey this width requirement, but I don’t
understand how to use https://reference.aspose.com/pdf/java/com.aspose.pdf/LoadOptions.PageSizeAdjustmentModes
and set HtmlLoadOptions to use NoAjustmentAllwaysUsePredefinedSize.
Any help would be appreciated.
Michael