correcting errors in pdf coding