Note: Input HTML files in the “Data” folder of above sample application.
In this sample we have done the following things, 1. Creates a Word document. 2. Hooks the ImageNodeVisited Event to open the image from a specific location 3. Opens an existing HTML file. 4. Saves the Word document.
Please refer our below UG documentation to know more about customize the image data in HTML file https://help.syncfusion.com/file-formats/docio/html?cs-save-lang=1&cs-lang=asp.net%20core#customize-image-data Regarding Any support for css classes: Currently DocIO doesn’t provide full-fledged support for CSS style sheet in HTML to Word conversion. This feature is to preserve CSS styles while importing HTML files is supported with limited CSS selectors. The following CSS selectors are supported in Essential DocIO's HTML import functionality at present, 1. IDSelector 2. ClassSelector 3. DescendantSelector 4. ElementSelector 5. ChildSelector
We don’t have any immediate plans to implement this feature. We will let you know when this feature is implemented.
Please let me know if you have any other questions. Regards, Poorani Rajendran.