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?

Hi,

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 C# code of Aspose.Words for .NET API 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,