Refinement And Digitization Of Documents