Damaged pdf repair