1. A method for generating a native file from an image, comprising: identifying a non-text object within the image and a formatting attribute of the non-text object; determining a tag for the non-text object by comparing the non-text object with a plurality of templates comprising a plurality of tags, wherein the tag corresponds to a matching template, and wherein the tag specifies a type of the non-text object and the formatting attribute of the non-text object in a format of the native file; generating metadata comprising composition information comprising the type and the formatting attribute of the non-text object, wherein at least part of the composition information is text data that is searchable by a native application for the native file to identify the non-text object within the native file; and generating the native file as an electronic document comprising: a markup comprising the tag specifying the type and the formatting attribute of the non-text object; and the metadata.