Enhancing OCR Accuracy for Complex Document Layouts