1. A method comprising using at least one hardware processor for: analyzing text in a digital document, to identify a text segment referring to a figure of the digital document; mapping said text segment to said figure; identifying, in said text segment, reference to one or more non-grayscale colors of said figure, to determine a level of importance of said one or more non-grayscale colors to legibility of said figure; and printing said digital document in accordance with the level of importance.