11. A non-transitory computer-readable medium that stores instructions, which when executed by a processor, causes the processor to generate color information for at least one object in a spreadsheet document described in a markup language, by: parsing the spreadsheet document to generate at least one display list associated with the at least one object by: obtaining distinct color values from a plurality of spreadsheet color table objects, wherein color values in the plurality of spreadsheet color table objects are referenced by the at least one object in the spreadsheet by using a plurality of indexes of the color table objects; storing the distinct color values in a color palette table object, wherein color values in the color palette table object are accessed using a plurality of color palette indexes; and generating a mapping between each index in each of the plurality of color table objects and one of the plurality of color palette indexes that points to a same color value; and rasterizing the at least one object in a frame buffer by processing the display list using the mapping generated during parsing.
11. A non-transitory computer-readable medium that stores instructions, which when executed by a processor, causes the processor to generate color information for at least one object in a spreadsheet document described in a markup language, by: parsing the spreadsheet document to generate at least one display list associated with the at least one object by: obtaining distinct color values from a plurality of spreadsheet color table objects, wherein color values in the plurality of spreadsheet color table objects are referenced by the at least one object in the spreadsheet by using a plurality of indexes of the color table objects; storing the distinct color values in a color palette table object, wherein color values in the color palette table object are accessed using a plurality of color palette indexes; and generating a mapping between each index in each of the plurality of color table objects and one of the plurality of color palette indexes that points to a same color value; and rasterizing the at least one object in a frame buffer by processing the display list using the mapping generated during parsing. 18. The computer readable medium of claim 11 , wherein the method is performed on: a computer; a printer; or a printer coupled to a computer.