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

		if (orientation == PageOrientation.LANDSCAPE || orientation == PageOrientation.REVERSE_LANDSCAPE) {
			double tmp = size[0];

			size[0] = size[1];
			size[1] = tmp;
		}

		return size;
	}