Bug 136820 viewer supports render report in pdf format
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
finally
		{
			renderTask.close( );
		}
		return out;
	}
	/**
	 * Get query result sets.
	 * 
	 * @param document
	 * @return
	 * @throws RemoteException
	 */
	public ResultSet[] getResultSets( IReportDocument document )
			throws RemoteException
	{
		assert document != null;
		ResultSet[] resultSetArray = null;
		IDataExtractionTask dataTask = null;
		synchronized ( this.getClass( ) )
		{
			dataTask = engine.createDataExtractionTask( document );
		}
		try
		{
			List resultSets = dataTask.getResultSetList( );
			if ( resultSets != null && resultSets.size( ) > 0 )
			{
				resultSetArray = new ResultSet[resultSets.size( )];
				for ( int k = 0; k < resultSets.size( ); k++ )