added PDF download function for higher resolution