opening up errors to debug pdf error