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( "{currentfile pix readhexstring pop}" );
		out.println( "false 3 colorimage" );
		out.println( "" );
		byte[] sb = new byte[originalHeight * originalWidth * 6];
		int offset = 0;
		for ( int i = 0; i < originalHeight; i++ )
		{
			if ( bgcolor == null )
			{
				for ( int j = 0; j < originalWidth; j++ )
				{
					int pixel = imageSource.getRGB( j, i );
					int alpha = ( pixel >> 24 ) & 0xff;
					int red = ( pixel >> 16 ) & 0xff;
					int green = ( pixel >> 8 ) & 0xff;
					int blue = pixel & 0xff;
					red = transferColor( alpha, red );
					green = transferColor( alpha, green );
					blue = transferColor( alpha, blue );
					offset = toBytes( offset, sb, red );
					offset = toBytes( offset, sb, green );
					offset = toBytes( offset, sb, blue );
				}
			}
			else
			{
				
			}
		}
		out.println( new String( sb ) );