Word document to html converter with replacing the html elements

Hi Team , 


It's great to connect! We have a collection of approximately 30,000 to 50,000 Word documents used for student assessments. Currently, we print these documents as question papers for students to take tests and then evaluate them manually. As part of our digital transformation, we are converting these Word documents into HTML.

Our goal is to replace empty table cells with multiline text boxes and convert numerical values into dropdown selections  etc to enhance user interaction. Do you have a script or code that can replace empty table cells dynamically based on the table heading etc?



5 Replies

SR Sindhu Ramesh Syncfusion Team March 12, 2025 04:09 PM UTC

Hi Visvesvar,
When converting Word to HTML using Syncfusion DocIO, if you wish to preserve text input fields and dropdowns in the output HTML, we recommend using text form fields in Word for text inputs and dropdown legacy form fields to retain dropdown selections. However, modifying the HTML output after conversion using DocIO is not feasible. To better understand your requirements and provide a solution at the earliest, kindly share a sample input Word document along with the expected output HTML. Based on your input and expected output, we will assess the feasibility of achieving your requirement through an alternative approach.

Regards,
Sindhu Ramesh.



VK Visvesvar K V March 14, 2025 04:53 AM UTC

Hi Sindhu,


It's great to receive an update from you. I can share the document, but not on a public forum. Could you provide your email ID or an alternative method to share it privately?



SR Sindhu Ramesh Syncfusion Team March 14, 2025 06:36 AM UTC

Visvesvar,
You can share the document privately by sending it to our support email: mailto:forum-support@syncfusion.com. To help us identify your request quickly, please include the forum ID in the email subject line.



VK Visvesvar K V March 17, 2025 01:35 PM UTC

Hi Team,


We have sent mail and waiting for the response. We need to achieve as per the image and it needs be achieved dynamically for thousand of unique documents and we have a sent one sample document for reference.


Input - word document.

output - Html Page 


Regards,

Visvesvar K V 



SR Sindhu Ramesh Syncfusion Team March 18, 2025 02:49 PM UTC

Visvesvar,
To achieve your requirement, we suggest maintaining text form legacy fields and drop-down legacy fields while preparing the input Word document. You can add legacy text form field and drop down field in the Developer tab in Microsoft word.

This ensures they are preserved as editable drop-downs and text boxes in the converted HTML. It is not feasible to insert or modify HTML tags using DocIO after the Word document has been converted.

We modified the given input document by converting numeric values into drop-down form fields and empty cells into text form fields. When converting DOCX to HTML, the drop-down fields will be preserved as dropdown menu, and text form fields will be retained as single-line text boxes. We shared the sample along with the modified input document via email.

Regards,
Sindhu Ramesh.


Loader.
Up arrow icon