add support for pdf file generation