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
IContentEmitter emitter;
		try
		{
			emitter = extManager.createEmitter( format, emitterID );
		}
		catch ( Throwable t )
		{
			log.log( Level.SEVERE, "Report engine can not create {0} emitter.", 
					format ); 
			throw new EngineException(
					MessageConstants.CANNOT_CREATE_EMITTER_EXCEPTION, t );
		}
		if ( emitter == null )
		{
			log.log( Level.SEVERE, "Report engine can not create {0} emitter.", 
					format ); 
			throw new EngineException(
					MessageConstants.CANNOT_CREATE_EMITTER_EXCEPTION );
		}
		
		initializePagination( format, extManager );
		
		if ( pagination != ExtensionManager.PAPER_SIZE_PAGINATION )
		{
			emitter = new HTMLTableLayoutNestEmitter( emitter );
		}
		
		return emitter;
	}
	private void initializeContentEmitter( IContentEmitter emitter,