size = new Dimension( size.height, size.width );
int width = (int) DEUtil.convertoToPixel( masterPage.getWidth( ) ); int height = (int) DEUtil.convertoToPixel( masterPage.getHeight( ) ); size = new Dimension( width, height );
	public static Dimension getMasterPageSize( MasterPageHandle masterPage )	{		Dimension size = null;		if ( masterPage == null				|| masterPage.getPageType( ).equalsIgnoreCase(						DesignChoiceConstants.PAGE_SIZE_US_LETTER ) )		{			size = new Dimension( MetricUtility.inchToPixel( 8.5, 11 ).x,					MetricUtility.inchToPixel( 8.5, 11 ).y );		}		else if ( masterPage.getPageType( ).equalsIgnoreCase(				DesignChoiceConstants.PAGE_SIZE_US_LEGAL ) )		{			size = new Dimension( MetricUtility.inchToPixel( 8.5, 14 ).x,					MetricUtility.inchToPixel( 8.5, 14 ).y );		}		else if ( masterPage.getPageType( ).equalsIgnoreCase(				DesignChoiceConstants.PAGE_SIZE_A4 ) )		{			size = new Dimension( MetricUtility.inchToPixel( 8.3, 11.7 ).x,					MetricUtility.inchToPixel( 8.3, 11.7 ).y );		}		else if ( masterPage.getPageType( ).equalsIgnoreCase(				DesignChoiceConstants.PAGE_SIZE_CUSTOM ) )		{			int width = (int) DEUtil.convertoToPixel( masterPage.getWidth( ) );			int height = (int) DEUtil.convertoToPixel( masterPage.getHeight( ) );			size = new Dimension( width, height );		}		if ( DesignChoiceConstants.PAGE_ORIENTATION_LANDSCAPE				.equalsIgnoreCase( masterPage.getOrientation( ) ) )		{			size = new Dimension( size.height, size.width );		}		return size;	}