Generate Hugo website as a PDF

I don’t believe there is a way to do this automatically with Hugo. There are some default arguments being passed to helpers like Pandoc, but last time I checked I couldn’t find out to change them:

Once those can be changed then you should be able to include PDF generation arguments for Pandoc.

There are couple alternative options.

  1. The easiest would probably be to create a wrapper script around Pandoc that adds these arguments. Unless you can get help from someone else with this, I don’t have the time to invest in doing it for you.

  2. PDF documents can be created from a custom output format template, but this is probably way more complicated than it is worth which is why it hasn’t been done.

You can watch for updates here: