How to fix a broken PDF for online printing