Bug 136820 viewer supports render report in pdf format
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtRunReportActionHandler.java
String paramValue = oprands[i].getValue( );
			parameterMap.put( paramName, paramValue );
		}
		String reportDesignName = attrBean.getReportDesignName( );
		String docName = attrBean.getReportDocumentName( );
		
		IViewerReportDesignHandle designHandle = new BirtViewerReportDesignHandle(
				null, reportDesignName );
		try
		{
			InputOptions options = new InputOptions( );
			options.setOption( InputOptions.OPT_REQUEST, context.getRequest( ) );
			options.setOption( InputOptions.OPT_LOCALE, attrBean.getLocale( ) );
			options.setOption( InputOptions.OPT_IS_DESIGNER, new Boolean(attrBean.isDesigner( )) );
			getReportService( ).runReport( designHandle, docName, options,
					parameterMap );
		}
		catch ( ReportServiceException e )
		{
			AxisFault fault = new AxisFault( );
			fault.setFaultReason( e.getMessage( ) );
			throw fault;
		}
	}
	protected IViewerReportService getReportService( )
	{
		return BirtReportServiceFactory.getReportService( );
	}
}