resize method for paper