1. A method in a web browser on a data processing system for processing a document, the method comprising: receiving a first web document including formatting information used to display the first web document; receiving a request to present a selected portion of the first web document; identifying formatting information associated with the selected portion of the first web document; creating in the web browser a second web document including the selected portion and the formatting information associated with the selected portion, in response to receiving the request, wherein the first web document and the second web document are markup language documents; responsive to a request to change a font attribute of the selected portion, inserting virtual font indicators before and after text within the selected portion; and responsive to a request to identify a page break in the selected portion, inserting at least one virtual page break indicator within the selected portion, wherein identifying the page break in the selected portion comprises identifying a location of the page break based on page setup information, document formatting information, and document content.
1. A method in a web browser on a data processing system for processing a document, the method comprising: receiving a first web document including formatting information used to display the first web document; receiving a request to present a selected portion of the first web document; identifying formatting information associated with the selected portion of the first web document; creating in the web browser a second web document including the selected portion and the formatting information associated with the selected portion, in response to receiving the request, wherein the first web document and the second web document are markup language documents; responsive to a request to change a font attribute of the selected portion, inserting virtual font indicators before and after text within the selected portion; and responsive to a request to identify a page break in the selected portion, inserting at least one virtual page break indicator within the selected portion, wherein identifying the page break in the selected portion comprises identifying a location of the page break based on page setup information, document formatting information, and document content. 2. The method of claim 1 , further comprising sending the second web document to an output device.