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
{
				drawRawLine(startX, startY, endX, endY, width, color, contentByte);
			}
			contentByte.restoreState();
		}
		
		/**
		 * Draws a line with the line-style specified in advance from the start position to 
		 * the end position with the given linewidth, color, and style at the given pdf layer.
		 * If the line-style is NOT set before invoking this method, 
		 * "solid" will be used as the default line-style. 
		 * 
		 * @param startX			the start X coordinate of the line
		 * @param startY 			the start Y coordinate of the line
		 * @param endX 				the end X coordinate of the line
		 * @param endY 				the end Y coordinate of the line
		 * @param width 			the lineWidth
		 * @param color 			the color of the line
		 * @param contentByte 		the given pdf layer
		 */
		private void drawRawLine(float startX, float startY, float endX, float endY, float width, 
				Color color, PdfContentByte contentByte )
		{
			contentByte.moveTo(startX, startY);
			contentByte.setLineWidth(width);
			contentByte.lineTo(endX, endY);        
			contentByte.setColorStroke(color);
			contentByte.stroke();
		}