We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Build Convert API service

I want to build a Convert document service from document to html5. So i have to convert document to pdf first, then convert pdf to html5

Is there any example for API service with aspose which can convert document to pdf then to html5 please ?


What file formats do you want to directly convert to HTML5?

In case of Word formats such as DOCX, DOC, ODT, RTF etc you can use the following Aspose.Words code to directly convert to HTML5.

Document doc = new Document(MyDir + @“input.docx”);

HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.Html);

opts.HtmlVersion = HtmlVersion.Html5;

opts.PrettyFormat = true;

doc.Save(MyDir + @"16.11.0.html", opts);

Best regards,