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

Free Support Forum - aspose.com

Word Doc Conversion to Epub (HTML files) with Inline Block Display C# .NET | Export Text Boxes as SVG in HTML | Inline with Text


This is actually a query specific to Word Document Conversion to Epub (HTML files).
I am looking into expected HTML conversion behavior for below Aspose version.
Product : Aspose-Words
Version : 15.8.0

Can a word document conversion to HTML have inline-block display markup ? Consider below HTML/CSS snippet for respective style.

<span style="display : inline-block"> inline-block content </span>

Steps tried:

  • I tried to convert Word document using Text Boxes with “Inline with Text” option.
  • However for such object, we see image created in HTML conversion.

Kindly let me know if above version of product can convert any word document layout to inline-block style. If creation of such style is possible then details of respective word document styles/layout will also be appreciated.

Word Document : Inline With Text Word_InlineWithText.png (111.2 KB)

HTML Converted Output HTML_TagStyle.png (155.9 KB)


By default, Aspose.Words will export Text Box in Word document to HTML format as an <img> tag. But, you can also instruct Aspose.Words to export Text Boxes as SVG in HTML:

Document doc = new Document("E:\\Temp\\in.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.Html);
htmlSaveOptions.ExportTextBoxAsSvg = true;
doc.Save("E:\\Temp\\20.7-ExportTextBoxAsSvg.html", htmlSaveOptions);

Please ZIP and upload your simplified Word document, Aspose.Words generated HTML or EPUB file showing the undesired behavior and an expected HTML file showing the desired output here for testing. We will then investigate the scenario on our end and provide you more information.