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
int h = imageIcon.getIconHeight( );
		int[] pixels = new int[w * h];
		try
		{
			PixelGrabber pg = new PixelGrabber( image, 0, 0, w, h, pixels, 0, w );
			pg.grabPixels( );
			if ( ( pg.getStatus( ) & ImageObserver.ABORT ) != 0 )
			{
				throw new IOException( "failed to load image contents" );
			}
		}
		catch ( InterruptedException e )
		{
			throw new IOException( "image load interrupted" );
		}
		ArrayImageSource imageSource = new ArrayImageSource( w, h, pixels );
		return imageSource;
	}
	private void drawImage( ImageSource imageSource, float x, float y,
			float width, float height, Color bgcolor )
	{
		int originalWidth = imageSource.getWidth( );
		int originalHeight = imageSource.getHeight( );
		y = transformY( y );
		gSave( );
		out.println( "% build a temporary dictionary" );
		out.println( "20 dict begin" );
		out.print( "/pix " );
		out.print( originalWidth * 3 );
		out.println( " string def" );