-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract all the variables from the word document #90
Comments
Interesting question... Maybe use https://www.npmjs.com/package/textract anderen then search with regex |
I've come up with an inefficient solution to this, but imo there should be an easier way. Since the
But in the Why doesn't this work? Here's my solution which does work, by catching the error in a loop:
PS - @cesarve77 please can you edit the title of this issue to something like |
Maybe you also can use a Proxy object in a first run. And getting the requestet fields... |
I tried a Proxy object but that didn't work. I think internally docx-templates is using something like |
FYI, the alternative module docxtemplater handles this really easily with its |
i also need to extract all the variables from template which has follow the +++=XXX+++ by template-docx'way |
I was planning on implementing something like this. I'll let you know when i've gotten around to it. |
any progress? |
I hope someone shows up with this solution soon also (= |
Added this feature in https://github.com/guigrpa/docx-templates/releases/tag/v4.3.0 |
Hi there, When trying to use listCommands, I always get an error: "...\node_modules\jszip\lib\utils.js:454 Error: Can't read the data of 'the loaded zip file'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?" Do not know what I am doing wrong. I start node with "--unhandled-rejections=strict ". |
@Arend-dev Please make a new issue for stuff like this. I can't do much without seeing your code. First off, can you verify that you are using it correctly by checking the suggestion in the error message (see below)? The unhandled rejections flag should have little to do with it. |
First thanks and congratulation for this great package
What is the best way to extract all the variables (in dot notation for example) from the word document.
My idea is build the query based in the variables asked in the docx.
Thanks in advance
The text was updated successfully, but these errors were encountered: