Bug 136820 viewer supports render report in pdf format
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
{
			IScalarParameterDefn parameterObj = (IScalarParameterDefn) iter
					.next( );
			String paramValue = null;
			Object paramValueObj = null;
			ScalarParameterHandle paramHandle = (ScalarParameterHandle) parameterObj
					.getHandle( );
			String paramName = paramHandle.getName( );
			String format = paramHandle.getPattern( );
			ReportParameterConverter converter = new ReportParameterConverter(
					format, locale );
			Set paramNames = null;
			if ( parameters != null )
			{
				paramNames = parameters.keySet( );
			}
			if ( parameters != null && paramName != null )
			{
				boolean found = false;
				for ( Iterator it = paramNames.iterator( ); it.hasNext( ); )
				{
					String name = (String) it.next( );
					if ( paramName.equals( name ) )
					{
						if ( parameters.get( name ) != null )
							paramValue = parameters.get( name ).toString( );
						paramValueObj = converter.parse( paramValue,
								ParameterDataTypeConverter
										.getEngineDataType( paramHandle
												.getDataType( ) ) );