Bug 189591 [Smoke]PDF can't be generated using report engine[0600]
[Smoke]PDF can't be generated using report engine[0600] Build number: 2.2.0.v20070529-1030 Steps to reproduce: 1. download BIRT runtime package and set BIRT_HOME 2. Go to Windows Command Prompt genReport --mode runrender --format PDF --output Test1.pdf --parameter "sample=hello" --parameter "Cust=100" test1.rptdesign Expected result: Test1.pdf can be generated Actual result: Exception thrown Error log: see attached screens shot
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFPageDevice.java
output ) );
			String creator = "BIRT Report Engine " 
				+ BundleVersionUtil.getBundleVersion( "org.eclipse.birt.report.engine" )
				+ " using iText "
				+ BundleVersionUtil.getBundleVersion( "com.lowagie.itext" );
			doc.addCreator( creator );
			if ( null != title )
				doc.addTitle( title );
		}
		catch( DocumentException de )
		{
			logger.log( Level.SEVERE, de.getMessage( ), de );
		}
	}
	
	public void close( ) throws Exception
	{
		writer.setPageEmpty( false );
		if(doc.isOpen( ))
		{
			doc.close();
		}
	}
	public IPage newPage( int width, int height, Color backgroundColor )
	{
		currentPage = new PDFPage( width, height, doc, writer );
		currentPage.drawBackgroundColor( backgroundColor, 0, 0, width, height );
		return currentPage;
	}