Bug 124444 Preview attached file in pdf will display nothing.
Description: Preview attached file in pdf will display nothing. Steps to reproduce: 1. Preview attached design file in pdf Expected result: Report content shows Actual result: Wait for 10 minutes but nothing showed at all
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
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 visitText(ITextArea textArea)
	{
		drawText(textArea);
	}
	public void visitImage(IImageArea imageArea)
	{
		drawImage(imageArea);
	}
	/**
	 * If the container is a PageArea, this method news a pdf page.
	 * If the container is the other containerAreas, 
	 * such as TableArea, or just the border of textArea/imageArea
	 * draw the border and background of the container