void pageSetup() {
		ImagePlus imp = WindowManager.getCurrentImage();
		Roi roi = imp!=null?imp.getRoi():null;
		boolean isRoi = roi!=null && roi.isArea();
		GenericDialog gd = new GenericDialog("Page Setup");
		gd.addNumericField("Scale:", scaling, 0, 3, "%");
		gd.addCheckbox("Draw border", drawBorder);
		gd.addCheckbox("Center on page", center);
		gd.addCheckbox("Print title", label);
		if (isRoi)
			gd.addCheckbox("Selection only", printSelection);
		gd.addCheckbox("Rotate 90"+IJ.degreeSymbol, rotate);
		gd.addCheckbox("Print_actual size", actualSize);
		if (imp!=null)
			gd.enableYesNoCancel(" OK ", "Print");
		gd.showDialog();
		if (gd.wasCanceled())
			return;
		scaling = gd.getNextNumber();
		if (scaling<5.0) scaling = 5;
		drawBorder = gd.getNextBoolean();
		center = gd.getNextBoolean();
		label = gd.getNextBoolean();
		if (isRoi)
			printSelection = gd.getNextBoolean();
		else
			printSelection = false;
		rotate = gd.getNextBoolean();
		actualSize = gd.getNextBoolean();
		if (!gd.wasOKed() && imp!=null) {
			this.imp = imp;
			print(imp);
		}
	}