I have a wordpress page with some custom features in JS that people can save in a pdf format. Is there a way to allow people to download the page in docx (MS Word) as well? I tried searching for a solution but couldn't find much.
I'd like to have a button 'Download as docx' that generates a similar looking version as the pdf format.
Ideally, I'd like to do it in JS or find a WP plugin that offers the functionality.
Thanks for the help
Thomas
You can do this with JavaScript. There's a repository for it on Github html-docx-js . There's also a jquery plugin googoose .
You can also do it with a WP plugin that uses googoose.
There is also this plugin , FileSaver.js. You are able to export to .doc using jQuery
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.