added proper sizing for pdfs to viewFile