Patent ID: 7895513

Claim:
A method comprising: acquiring an electronic document, the electronic document including text objects each having a respective font size; identifying a smallest font size of the text objects in the electronic document; receiving parameters of display device, the parameters comprising a display resolution; determining a resolution threshold for the entire electronic document such that a text object of the text objects having the identified smallest font size in the acquired electronic document would be legible on the display device according to the display resolution of the display device; determining a document size limit for the display device; determining a document size for a raster image that would be created by rasterizing the electronic document at the resolution threshold and using a number of bits for storing color information for each pixel in the raster image; determining that the document size is not within the document size limit for the display device and then repeatedly reducing a color space for the electronic document wherein the number of bits used for storing color information for each pixel are reduced until the document is within the document size limit for the display device, and wherein the respective font sizes of the text objects relative to the entire electronic document are preserved; rasterizing the electronic document, for display on the display device, at the resolution threshold and using the reduced color space and reduced number of bits for storing color information.