04-06-2018 11:05 AM
Hello, im trying to use javascript to edit some lines of content inside a word file. Im using ".content" to append some text.
But the result is a strange encoding of the file content. There is a way using javascript to append text in a word file, without damaging it.
Thanks
04-08-2018 07:44 AM
A Word file (docx) is a compressed archive (ZIP) of various XML files. There is no default API or means to edit a Word file via JavaScript. Even in Java it is not so simple - you need special libraries such as DOCX4J to deal with the internal structures and references of these XML files.