Bug 168042 [regression]Background position doesn't work in pdf generated using BIRT PDF emitter.[0300]
[regression]Background position doesn't work in pdf generated using BIRT PDF emitter.[0300] Build number: 2.1.2.v20061214 Steps to reproduce: 1.open the attached report and preview in PDF 2.select the style and set the vertical position of background to 50% 3.preview in PDF Expected result: effects in step 1 and 3 are different Actual result: the same effects Error log: N/A
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
PdfTemplate template = null;
					if (height > img.scaledHeight()) {
						template = cbUnder.createTemplate(width - absPosX > img
								.scaledWidth() ? img.scaledWidth() : width
								- absPosX, img.scaledHeight());
						template.addImage(img, img.scaledWidth(), 0, 0, img
								.scaledHeight(), 0, 0);
					}
					while (remainY > 0) {
						if (remainY < img.scaledHeight()) {
							PdfTemplate templateY = cbUnder.createTemplate(width
									- absPosX > img.scaledWidth() ? img
									.scaledWidth() : width - absPosX, remainY);
							templateY.addImage(img, width > img.scaledWidth() ? img
									.scaledWidth() : width - absPosX, 0, 0, img
									.scaledHeight(), 0,
									-(img.scaledHeight() - remainY));
							cbUnder.addTemplate(templateY, x + absPosX, y - height);
							remainY = 0;
						} else {
							cbUnder.addTemplate(template, x + absPosX, y - height
									+ remainY - img.scaledHeight());
							remainY -= img.scaledHeight();
						}
					}
				}
				
				else if ("repeat".equalsIgnoreCase(repeat)) 
				{
					float remainX = width;