1. A method of compressing a document, said method comprising: (a) acquiring an image of the document, said image represented by pixels; (b) segmenting the image into Mixed Raster Content (MRC) planes including a foreground plane that receives a first portion of the pixels, a background plane that receives a second portion of the pixels, and a selector plane that identifies which of the foreground and background planes the pixels belong to; (c) identifying a geometric shape in at least one of the MRC planes; (d) determining if the identified geometric shape has a substantially uniform color; and, (e) replacing the identified shape when it is determined to have a substantially uniform color with a vector graphic representation of the geometric shape.