Bug 158710 Page break lost when printed as PDF in web viewer
Masterpage was lost when printed as PDF in web viewer Steps to reproduce: 1.preview attached report in web viewer 2.print as PDF Expected result: Preview as PDF directly and printed as PDF in web viewer shoud be the same Actual result: Printed as PDf in web viewer lost master pages while previewed as PDF directly works well
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java
OnPageBreakLayoutPageHandle handle = new OnPageBreakLayoutPageHandle(
						executionContext );
				layoutEngine.setPageHandler( handle );
				
				CompositeContentEmitter outputEmitters = new CompositeContentEmitter( format );
				outputEmitters.addEmitter( emitter );
				outputEmitters.addEmitter( handle.getEmitter( ) );
				
				startRender( );
				layoutEngine.layout( executor, outputEmitters, false );
				closeRender( );
				executor.close( );
			}
			else
			{
				IReportExecutor executor = new ReportExecutor(
						executionContext, reportDesign, null );
				executor = new LocalizedReportExecutor( executionContext,
						executor );
				executionContext.setExecutor( executor );
				initializeContentEmitter( emitter, executor );
				
				ReportContentLoader loader = new ReportContentLoader(
						executionContext );
				startRender( );
				load( loader, emitter );
				closeRender( );
				executor.close( );
			}
		}