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
/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setInstanceID( InstanceID iid )
	 */
	public void setInstanceID( InstanceID iid ) throws EngineException
	{
		innerRender = new ReportletRender( iid );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setPageRange( String pageRange )
	 */
	public void setPageRange( String pageRange ) throws EngineException
	{
		innerRender = new PageRangeRender( parsePageSequence( pageRange, reportDoc.getPageCount( )) );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IRenderTask#setBookmark( String bookmark )
	 */
	public void setBookmark( String bookmark ) throws EngineException
	{
		long pageNumber = reportDoc.getPageNumber( bookmark );
		if ( pageNumber <= 0 ) {
			throw new EngineException( "Can not find bookmark :{0}", bookmark ); 
		}
		innerRender = new PageRender( pageNumber );
	}
	public void setReportlet( String bookmark ) throws EngineException
	{
		innerRender = new ReportletRender( bookmark ); 
	}
	private abstract class InnerRender