Reputation: 14385
I have created a .docx
document on Google doc,
Using a script, I want to detect the meta for:
I have already tried the following packages and I have opened issues because these packages don't work:
How can I extract the meta author and title from a google doc .docx
document in NodeJS?
Upvotes: 3
Views: 1559
Reputation: 7367
A .docx file is simply a zip file with other files within it. Just find a package/module that can unzip it and look for the .xml
file(s) that contains the data you need. ;) You can unzip one yourself and take a look. I used 7-zip to explore one and found two files with some document data in the docProps
sub-path:
There are plenty to chose from I'm sure, but here is one: https://www.npmjs.com/package/unzip
If you are exporting from a Google doc, then that information may not be included.
Upvotes: 2