Adding some text content programmatically to a DOCX document opened on Webviewer

Hello,

These last days I have been trying out the Webviewer on our project to open and edit docx files. So far things are going smooth. But we have requirement to add text or table contents to the docx file that is opened programmatically. We tried annotations, and ContentEdit. But they seem to be used for PDF documents. And I could not find any resources for this problem. Is there any APIs for this?

1 Like

Thank you for contacting us about this. Unfortunately, the SDK does not have the ability to edit docx files directly. However, it is possible to add table content to docx files using the UI as shown on the screenshot below:

Is this an option for you? Note that we also have our DocumentCreation api and workflow (however this is only for PDFs)

1 Like

Sorry, this is not an option for us. We want to add the content to the docx using code. Something like in our angular component’s ts file: this.editor.addText(‘Some text’); this kind of thing

1 Like