Bug 317397 [Automation][Regression] Pagebreak does not work when preview in DOC/PDF/PPT/PostScript
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
startRender( );
		try
		{
			IContentEmitter emitter = createContentEmitter( );
			IReportExecutor executor = new ReportExecutor( executionContext );
			executor = new SuppressDuplciateReportExecutor( executor );
			executor = new LocalizedReportExecutor(
					executionContext, executor );
			executionContext.setExecutor( executor );
			CompositeLayoutPageHandler layoutHandler = new CompositeLayoutPageHandler( );
			layoutHandler.addPageHandler( new ContextPageBreakHandler(
					executionContext ) );
			layoutHandler.addPageHandler( new LayoutPageHandler( ) );
			if ( ExtensionManager.PAPER_SIZE_PAGINATION.equals( pagination ) )
			{
				LayoutEngine pdfLayoutEmitter = new LayoutEngine( executor,
						emitter, renderOptions, executionContext, 0l );
				pdfLayoutEmitter.setPageHandler( layoutHandler );
				emitter = pdfLayoutEmitter;
			}
			initializeContentEmitter( emitter );
			
			String format = executionContext.getOutputFormat( );
			
			
			boolean paginate = true;
			HTMLRenderOption htmlOption = new HTMLRenderOption( renderOptions );
			paginate = htmlOption.getHtmlPagination( );
			
			if ( ExtensionManager.NO_PAGINATION.equals( pagination ) )