Hi there
When I try to export a html page to MS Word and PDF with Aspose.word 4.3, it cannot recognize most of bullet points of the page. Please find attached both word (Promotion_UOM0116.doc) and pdf (Promotion_UOM0116.pdf) files converting from this page: http://policy-uat.unimelb.edu.au/UOM0116
The code for creating those files is:
if (type.equalsIgnoreCase("MsWord"))
{
response.setContentType("application/msword");
docName = docName + ".doc";
tempName = tempName + ".doc";
insertWatermarkText(doc, "uncontrolled when printed");
doc.save(dir + tempName);
}
else if (type.equalsIgnoreCase("pdf"))
{
response.setContentType("application/pdf");
docName = docName + ".pdf";
tempName = tempName + ".pdf";
PdfOptions options = new PdfOptions();
options.setHeadingsOutlineLevels(3);
options.setExpandedOutlineLevels(1);
options.setTrueTypeFontsFolder("/usr/share/fonts");
String imagePath = getServletContext().getRealPath("") + "//images//watermark.png";
insertWatermarkImage(doc, imagePath);
doc.saveToPdf(0, doc.getPageCount(), dir + tempName, options);
}
Cheers
Alireza