Adding support for PDF output