try to handle PDF with illegal line-endings after stream keyword