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

Free Support Forum - aspose.com

Can I convert word to html like pdf does?


I’m using C++ sdk.
Can I convert word to html like pdf does?
The output by Words SDK:
Screenshot 2021-12-07 at 21-14-08 Screenshot.png (363.7 KB)
The output by PDF SDK:
Screenshot 2021-12-07 at 21-14-47 Screenshot.png (208.6 KB)

Test file:
DDSU19174PD1017_4G.7z (228.4 KB)

PS: Can I change the unit(px,em) of output html?


@kngstr I think, in your case, you can use SaveFormat::HtmlFixed. In this case the produced HTML will have the same page layout as the source MS Word document.

auto doc = MakeObject<Document>(u"in.docx");
doc->Save(u"out.html", SaveFormat::HtmlFixed);

No, there is no way to change the units.


Thanks. It works.