Utility that calculates the optimal placement of the pages for n-up printing