Bug 166443 Can not preview the multi master pages in PDF[05]
Description: A report design file include multi-master pages and one of them has the AutoText, if a element point to the master page which has no AutoText, the preview is failed. Build number: 2.1.2.v20061201-0710 2.2.0.v20061201-0710 Steps to reproduce: 1, New a report design with two master pages 2, The first master page include some AutoText in master page header 3, Left the second master page by default 4, In lay out use a Text element point to the second master page 5, Preview in PDF Expected result: It can be previewed successfully Actual result: Exception occurs when previewing the result in PDF
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
catch( DocumentException de )
			{
				logger.log( Level.SEVERE, de.getMessage( ), de );
			}
			
			
			Color bc = PropertyUtil.getColor(page.getStyle().getProperty(StyleConstants.STYLE_BACKGROUND_COLOR));
			drawBackgroundColor( bc, 0, pageHeight, pageWidth, pageHeight );
			
			
			drawBackgroundImage(page.getStyle(), 0, pageHeight, pageWidth, pageHeight);
		}
		/**
		 * draw background image for the container
		 * @param containerStyle   the style of the container we draw background image for
		 * @param startX           the absolute horizontal position of the container
		 * @param startY		   the absolute vertical position of the container
		 * @param width            container width
		 * @param height           container height
		 */
		private void drawBackgroundImage(IStyle containerStyle, float startX, float startY, float width, float height)
		{
			String bi = PropertyUtil.getBackgroundImage(
					containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_IMAGE));
			if(bi==null)
			{
				return;
			}
			FloatValue positionValX = (FloatValue)containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_POSITION_X);
			FloatValue positionValY = (FloatValue)containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_POSITION_Y);