How to Extract Text and Images from a Corrupted PDF?