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
}
	private static List getToCChildren( TOCNode node )
	{
		if ( node.getChildren( ) == null )
			return null;
		List children = node.getChildren( );
		List ret = new ArrayList( );
		Iterator it = children.iterator( );
		while ( it.hasNext( ) )
		{
			TOCNode childNode = (TOCNode) it.next( );
			ToC child = new ToC( childNode.getNodeID( ), childNode
					.getDisplayString( ), childNode.getBookmark( ) );
			
			child.setChildren( getToCChildren( childNode ) );
			ret.add( child );
		}
		return ret;
	}
	private IGetParameterDefinitionTask getParameterDefinitionTask(
			IViewerReportDesignHandle design ) throws EngineException
	{
		IReportRunnable runnable = ( IReportRunnable ) design.getDesignObject( );
		if ( runnable == null )
		{
			String reportDesignName = design.getFileName( );
			runnable = ReportEngineService.getInstance( )
					.openReportDesign( reportDesignName );
		}
		IGetParameterDefinitionTask paramTask = ReportEngineService