prints bad pdfs but doesn't stop