final touches to pdf parsing