How to convert using PANDOC a markdown file to rtf
Asked Answered
T

1

6

I am new to pandoc and I am strugling to get a file convesion done. I want to convert a markdown file to a rtf file.

pandoc -f markdown -f rtf 1.md -o file.rtf

I am using the following command, however it just does not do the work correctly, as it is not beind correctly displayed when opening the file...

enter image description here

I also tried to replace the second flag with -s, however it also did not work:

pandoc -f markdown -s rtf 1.md -o file.rtf

I get the following notification, when I try to do that:

pandoc: rtf: openBinaryFile: does not exist (No such file or directory)

Trunkfish answered 15/2, 2022 at 21:17 Comment(0)
L
7

Your command has too many arguments.

Try this, removing the rtf syntax since that next argument is supposed to be the source file 1.md.

pandoc -f markdown -s 1.md -o file.rtf

Latinism answered 15/2, 2022 at 21:56 Comment(1)
Thank you, it just worked fine hereTrunkfish

© 2022 - 2024 — McMap. All rights reserved.