added support for exporting html files to pdf