1. A method of fitting graphical objects within a plurality of graphical frames in a document, each frame being associated with at least one fitting attribute with a value for fitting the graphical objects in the frame, comprising: associating the frames within a group; using an algorithm to automatically optimize the at least one value for each frame in the group; applying the optimized at least one value to its associated frame in the group to fit the graphical objects in each of the frames.