1. A non-transitory computer useable medium having a computer readable program, wherein the computer readable program when executed on a computer causes the computer to: receive an indication that a printout of a presentation document has been requested, the presentation document having content with a format so as to occupy a space that would result in a first quantity of pages being printed, the content having a plurality of slides and a plurality of shapes; preprocess the presentation document to acquire data associated with the presentation document; perform group shaping to group the plurality of shapes into one or more groups based on a plurality of grouping rules which define shapes that have to be transformed together, wherein the plurality of grouping rules are based on at least two of measuring overlap, proximity, formatting and presence of connectors between the plurality of shapes; perform content transformation to generate transformed content, wherein performing the content transformation removes formatting from a plurality of elements in each slide that make up the content and merging content to reduce whitespace thereby causing the presentation document to occupy more space than the transformed content; perform a content re-layout to determine placement of the merged elements of the content; and generate a green presentation document according to the content re-layout such that the green presentation document has a second quantity of pages that is less than the first quantity of pages.