17. The multi-function device as claimed in claim 15 , wherein the multi-layered OCR document generation module is further configured to assign a unique color to each OCR layer of the multi-layered OCR file.
15. A multi-function device for generating a multi-layered Optical Character Recognition (OCR) file, comprising: a scanning module configured to: receive a document for scanning using OCR option; and generate a scanned image; a multi-layered OCR document generation module configured to: generate a binary image from the scanned image; perform a morphological dilation operation on the binary image to create one or more text groups; apply OCR on each text group to create the corresponding OCR layer; and combine the one or more OCR layers while creating the multi-layered OCR file, wherein the multi-layered OCR file allows a user to select a portion of text from the multi-layered OCR file.