change method of generating PDF
make changes necessary for PDF to be produced via link