Open bobyfisch opened 2 years ago
Does the keep_active
flag do what you need?
Hi @AlJohri,
I believe this flag would keep open the file inputFile, this is not exactly to what I was referring - I would like for this file to close but it seems that in doing so it also closes the other open word files I have in my computer.
But thank you for your answer, I will use this flag as leaving InputFile open is less of a problem than closing other word documents that might result in problems.
Came here to make the same comment, it closes all instances of Word, not just the one it briefly runs to do the conversion, keep_active
helps but does not perfectly resolve the issue :(
can you help me understand how keep_active
doesn't resolve the issue? on both windows and macOS, this flag just prevents the entire word application from being closed:
regardless of this flag, we still close the input document:
but if keep_active is true then I believe the word application should remain open
🤦♂️ Ah.
My understanding was that --keep-active
would cause the document I converted to remain open afterwards. I had assumed that leaving other instances of Word would be the default action because... well why would you interact with other instances? They have nothing to do with the document I was turning into a PDF and should not be touched, that shouldn't need a special flag imo
I have various open word files in my computer (Windows 10). When launching the following function:
The code works well: it opens inputFile, converts it and closes it. I can see all of this because I can see microsoft word openning inputFile and then closing it.
However, when closing InputFile the close command is also trying to close my other open word files, I find this is a bug and should be fixed, as it could result in unwanted behaviour.