node-pandoc
node-pandoc copied to clipboard
Extracting media throws Permission Denied
hi, thanks for the module.
Situation
- Using a docx with images.
- Using "--extract-media=", "." in the args array to extract the images in the docx document
Error thrown: Oh No: Error: pandoc: .: openBinaryFile: permission denied (Permission denied)
Expected behavior Should create a folder called "media" in current directory and extract the images there Works fine in command line with pandoc.
Solution with problems It works with args as string... but using string causes problems with spaces and slashes in -o So this solution doesn't work with batch files having spaces in output.
Environment Windows 11 pandoc 2.18 node-pandoc 0.3.0 node 16.13.1
Hope you can give me a hint.