Skip to content

Extracting media throws Permission Denied #9

@fxpar

Description

@fxpar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions