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
*/
	public ByteArrayOutputStream renderReport( HttpServletRequest request,
			IReportDocument reportDocument, long pageNumber,
			boolean masterPage, boolean svgFlag, List activeIds, Locale locale )
			throws RemoteException
	{
		assert reportDocument != null;
		assert pageNumber > 0 && pageNumber < reportDocument.getPageCount( );
		ByteArrayOutputStream out = new ByteArrayOutputStream( );
		
		IRenderTask renderTask = null;
		synchronized ( this.getClass( ) )
		{
			renderTask = engine.createRenderTask( reportDocument );
		}
		HashMap context = new HashMap( );
		context.put( EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT,
				createHTMLrenderContext( svgFlag, request.getServletPath( ) ) );
		context.put( EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST,
				request );
		context.put( EngineConstants.APPCONTEXT_CLASSLOADER_KEY,
				ReportEngineService.class.getClassLoader( ) );
		renderTask.setAppContext( context );
		
		HTMLRenderOption setting = new HTMLRenderOption( );
		setting.setOutputStream( out );
		setting.setOutputFormat( IBirtConstants.RENDERFORMAT );
		boolean isEmbeddable = false;
		if ( IBirtConstants.SERVLET_PATH_FRAMESET.equalsIgnoreCase( request
				.getServletPath( ) ) )