alter the order of paper size setting so that paper block can set margins
Add SetMargin command