Add link to project home page
Remove stray apostrophe
Add some sensible base styles to all documents
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.
You'll need to install pandoc and wkhtmltopdf to use topdf
.
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.)
$ topdf [OPTIONS] INPUT_FILE -- [PANDOC_OPTIONS...]
Options:
--html
: Use wkhtmltopdf as the PDF engine--latex
: Use pdflatex as the PDF enginePANDOC_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 astyle.css
file in the working directory and pass it topandoc
with the--css
option.