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
* Converts the top Y coordinate of an Area from layout to the start Y coordinate in pdf. 
		 * to the bottom Y coordinate in PDF
		 * @param layoutY 				the Y coordinate specified from layout
		 * @param areaHeight			the height of the area whose coordinate need to be converted.
		 * 								To text area, the height is from the top of the text to
		 * 								the text's baseline.
		 * @param containerHeight		the height of the area's container 
		 * @return				the PDF Y coordinate
		 */
		private float layoutAreaY2PDFEx (int layoutY, int areaHeight, float containerHeight)
		{
			return containerHeight - pdfMeasure(layoutY) - pdfMeasure(areaHeight);
		}
	    
		/**
		 * Sets current area as a bookmark. 
		 * If the current area does NOT contain any bookmark info,
		 * this method does nothing.
		 * 
		 * @param area			the area which may need to be marked. 
		 * @param curPos 		the position, relative to the page, of the area's container.
		 */
		private void makeBookmark(IArea area, ContainerPosition curPos) 
		{
			IContent content = area.getContent();
			if( null != content )
			{
				int areaY = curPos.y + area.getY();
				String bookmark = content.getBookmark();
				if (null != bookmark)