Portable(ish) Pandoc Magic. For years I've used the files in Global-Pandoc-Files to convert Markdown-based documents into Word (docx through odt), HTML, and PDF (through xelatex). It wasn't easy to arrive at the set-up I ended up with, so I hope this will be useful for those looking to use pandoc to generate pdf and epub.
Pandoc Convert Html To Pdf

Word To Html

Pandoc Html Page To Pdf
Den 2017-02-14 kl. 11:15, skrev Sérgio Dias:I do all my conversion needs which pandoc can't handle with
> I have 500 files to pass to markdown. But in the Internet I only find that
> is possible with DOCX input (when speaking in text documents).
>
[LibreOffice][] from the command line (nowadays mostly to convert
various WYSIWYG formats to docx which pandoc can read.)
Just make sure that you close all (GUI) instances of LibreOffice
before running these commands on the command line, or you will get
nothing but an unhelpful error message!
To batch convert from doc to docx:
libreoffice --headless --convert-to docx *.doc
To batch convert from pdf to docx:
libreoffice --headless --convert-to docx *.pdf
You don't get the very latest docx format, but that may actually
be a Good Thing.
Pandoc handles the thus produced docx files without problems, anyway.
You can also use the optional `--outdir path/to/converted/files`
option if you don't want to clutter the current directory. The
output directory is created if it doesn't exist already.
[LibreOffice]: https://www.libreoffice.org/
