Retains only colors that are used in the document. The parent colors of shades, tints and linked colors are also retained.