Enable/disable pdf generation in config file