Bug 164426 Different display between html and pdf output[0300]
Description: Image background of label displays different between in html and pdf output. Build number: 2.2.0.v20061114-0634 Steps to reproduce: 1.Add a label and new a style. 2.Set background image and set to no repeat. 3.Preview in html and pdf. You will get two different output. HTML shows the topper part of image, while in pdf shows the bottom part of image. Expected result: Show the topper part of image in both two of outputs.
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
public void visitAutoText(ITemplateArea templateArea)
		{
			assert(cb!=null);
			if (null == tpl)
			{
				tplWidth = templateArea.getWidth();
				tplHeight = templateArea.getHeight();
				tpl = cb.createTemplate(pdfMeasure(tplWidth), pdfMeasure(tplHeight));
			}
			cb.saveState();
			ContainerPosition curPos;
			if ( !containerStack.isEmpty() )
				curPos = (ContainerPosition)containerStack.peek();	
			else 
				curPos = new ContainerPosition(0, 0);
			float x = layoutAreaX2PDF(curPos.x + templateArea.getX());
			float y = layoutAreaY2PDF(curPos.y + templateArea.getY(),  tplHeight);
			cb.addTemplate(tpl, x, y);
			cb.restoreState();
		}
		/**
		 * If the container is a PageArea, this method creates a pdf page.
		 * If the container is the other containerAreas, 
		 * such as TableArea, or just the border of textArea/imageArea
		 * this method draws the border and background of the given container.
		 * @param container				the ContainerArea specified from layout
		 */
		public void startContainer(IContainerArea container)
		{