Word handler, pdf options, and request for more places for documents to be saved to... #51
Replies: 3 comments 1 reply
-
I have a question regarding the Word handler. Looking at the source code it seems there is a "pdf-vary-filenames" option that will save the document as a PDF. However, it also looks like it pulls the save path from CommandArgs[0]. Do I add the "pef-vary-filenames" as a second argument under commandArgs or does it need to be prepended to the save path? It would be cool if you could put a few save file path's in CommandArgs and then ghost would randomly select one. |
Beta Was this translation helpful? Give feedback.
-
In a word handler config, the commandargs line is just a string array. With all the options enabled, it looks like this:
For the latter two, they act as flags and so I only need to see if they exist or not. The save path (CommandArgs[0]) could be anything, so I look for it by its position. Over time, the values in CommandArgs have evolved, and maybe this wasn't the best way to architect them! So, I'm thinking of how to add another variable like the one you suggest, that makes more sense in the long term. Maybe I'll look into the suggestion of additional file paths today, that should not be difficult to implement. |
Beta Was this translation helpful? Give feedback.
-
This is implemented and pushed for the current build binaries. The format is:
Note the double \ chars to keep json deserialization happy :) |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions