Add a command line switch to enable pdf generation