1. A method for rendering a document, the method comprising: converting a plurality of resources in a document file into a plurality of files that are native to a browser; creating a style sheet based on the document file, wherein an aggregate of the plurality of files together with the style sheet are configured to cause the browser to render an appearance of the document file; and generating, based on the document file, an invisible layer to be laid on the appearance, wherein the invisible layer enables actions to be performed on the document file.