public static void setPageSize(PrintService service, PrintRequestAttributeSet set, double[] size, LengthUnits units) {
		PageOrientation orientation = getPageOrientation(service, set);

		if (orientation == PageOrientation.LANDSCAPE || orientation == PageOrientation.REVERSE_LANDSCAPE) {
			size = new double[] { size[1], size[0] };
		}
		setPaperSize(service, set, size, units);
	}