Bug 144402 Report title didn't appear on PDF
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
}
	}
	/**
	 * close the document
	 */
	public void end(IReportContent rc)
	{
		
		TOCHandler tocHandler = new TOCHandler( rc.getTOC() );
		TOCNode tocRoot = tocHandler.getTOCRoot();
		if (true == tocRoot.getChildren().isEmpty())
		{
			writer.setViewerPreferences(PdfWriter.PageModeUseNone);
		}
		else
		{
			writer.setViewerPreferences(PdfWriter.PageModeUseOutlines);
			PdfOutline root = cb.getRootOutline();
			tocHandler.createTOC(tocRoot, root);
		}
		doc.close();
	}
	
	public void setTotalPage(ITextArea totalPage)
	{
		drawTextAt(totalPage, 0, 0, tpl, tpl.getHeight());
	}
	public void visitText(ITextArea textArea)
	{
		ContainerPosition curPos;