1. A processor implemented method for generating color information for at least one object in a spreadsheet document described in a markup language, the method comprising: 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.
1. A processor implemented method for generating color information for at least one object in a spreadsheet document described in a markup language, the method comprising: 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. 7. The processor-implemented method of claim 1 , wherein the at least one object includes at least one of a border object, a font object, or a fill object.