setPaperSize and setAutoSize functions