Automated Labeling in Document Images