node-pandoc icon indicating copy to clipboard operation
node-pandoc copied to clipboard

Extracting media throws Permission Denied

Open fxpar opened this issue 3 years ago • 0 comments

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.

fxpar avatar May 15 '22 08:05 fxpar