Bug 198054 The width of the page is not the same in PDF and POSTSCRIPT [1201]
Description: The width of the page is not the same in PDF and POSTSCRIPT. Build number: 2.2.1.v20070727-0630 Steps to reproduce: 1. Preview the attached design file in PDF and POSTSCRIPT. Expected result: Page width of PDF and POSTSCRIPT are the same. Actual result: Page of POSTSCRIPT is wider than PDF(See the screenshot). Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.postscript/src/org/eclipse/birt/report/engine/emitter/postscript/PostscriptWriter.java
out.println( "" );
		out.println( "end" );
		gRestore( );
	}
	private int transferColor( int alpha, int color )
	{
		return 255 - (255 - color) * alpha / 255;
	}
	
	private int toBytes( int offset, byte[] buffer, int value )
	{
		buffer[offset++] = hd[( ( value & 0xF0 ) >> 4 )];
		buffer[offset++] = hd[( value & 0xF )];
		return offset;
	}
	protected void drawRect( float x, float y, float width, float height,
			boolean fill )
	{
		drawRawRect( x, y, width, height );
		if ( fill )
			out.println( "fill" );
		else
			out.println( "stroke" );
	}
	private void drawRawRect( float x, float y, float width, float height )
	{
		y = transformY( y ) - height;
		out.print( x );
		out.print( " " );
		out.print( y );