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
if ( node == null )
		{
			throw new ReportServiceException( "Invalid TOC query." ); 
		}
		doc.close( );
		return transformTOCNode( node );
	}
	public long getPageCount( String docName, InputOptions options )
			throws ReportServiceException
	{
		IReportDocument doc = ReportEngineService.getInstance( )
				.openReportDocument( getReportDesignName( options ), docName );
		long count = doc.getPageCount( );
		doc.close( );
		return count;
	}
	public Collection getParameterDefinitions(
			IViewerReportDesignHandle design, InputOptions runOptions )
			throws ReportServiceException
	{
		try
		{
			IGetParameterDefinitionTask task = getParameterDefinitionTask( design );
			return task.getParameterDefns( false );
		}
		catch ( EngineException e )
		{
			throw new ReportServiceException( e.getLocalizedMessage( ) );
		}
	}