~jcc/topdf

Wrapper for pandoc to easily convert files (especially Markdown) to PDF
Add link to project home page
Remove stray apostrophe
5711b4e5 — Jason Cox 2 years ago
Add some sensible base styles to all documents

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~jcc/topdf
read/write
git@git.sr.ht:~jcc/topdf

You can also use your local clone with git send-email.

#topdf

jasoncarloscox.com/creations/topdf

topdf is a wrapper around pandoc that makes it even easier to convert various document formats to PDF from the command line. I created this because I prefer to do most of my writing in Markdown, but PDFs are easier to turn in for school assignments.

#Requirements

You'll need to install pandoc and wkhtmltopdf to use topdf.

#Installation

Just download the topdf script and start using it! If you want to easily use it from anywhere, just add the directory containing topdf to your path. (Don't know how? Check out these instructions.)

#Usage

$ topdf [OPTIONS] INPUT_FILE -- [PANDOC_OPTIONS...]

Options:

  • --html: Use wkhtmltopdf as the PDF engine
  • --latex: Use pdflatex as the PDF engine

PANDOC_OPTIONS will be passed directly to pandoc.

This assumes you've added topdf to your path, as explained in the installation section.

Check out pandoc's documentation for information about available options. Also note that topdf already uses some options by default - take a look inside the script to see which ones.

Handy tip: topdf will detect a style.css file in the working directory and pass it to pandoc with the --css option.

Do not follow this link