-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Can't convert an open Word with OneDrive, but can copy it #10436
Comments
Pandoc shouldn't need higher permissions than copy. Not sure what is going on here, because the error message is not very informative. What are the permissions on A.docx? (I assume you're on Windows; I don't know anything about how permissions work on Windows.) Have you tried changing the permissions to see if it makes a difference for pandoc? |
My OS version is Windows 11 23H2 and pandoc version is 3.5. The permission of A.docx is default (unchanged since creation). I did more experiments and found that the issue occurred while OneDrive running. Would you consider my suggestion? This will make pandoc compatible with OneDrive. |
I really can't help until the issue is more precisely diagnosed. |
After reading your reply, I did another experiment and confirm your doubts. This issue requires three conditions: |
I don't think I can help further, because I don't have a Windows/OneDrive setup to test on. |
Are there other developers/contributors can help? |
I wonder if pandoc will lock the file when reading it? |
When
A.docx
is open, this happens:However, we can do this:
It's puzzling: if you can copy it, you should be able to convert it. Both require only read permission.
Does
pandoc
need higher permissions thancopy
? If so, I have a suggestion: Letpandoc
copy the target to a temp, convert the temp, and delete the temp. That would solve the issue perfectly.The text was updated successfully, but these errors were encountered: