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
int outerBorderWidth=bi.borderWidth/4; 
	 				int innerBorderWidth=bi.borderWidth/4;
	 				
	 				switch (bi.borderType)
	 				{
	 				case BorderInfo.TOP_BORDER:
	 					drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+outerBorderWidth/2 ), 
	 	 						layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+outerBorderWidth/2 ), 
	 	 						pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				drawLine( layoutPointX2PDF( bi.startX+3*borders[BorderInfo.LEFT_BORDER].borderWidth/4 ), 
	 	 						layoutPointY2PDF( bi.startY+bi.borderWidth/2-innerBorderWidth/2 ), 
	 	 						layoutPointX2PDF( bi.endX-3*borders[BorderInfo.RIGHT_BORDER].borderWidth/4 ), 
	 	 						layoutPointY2PDF( bi.endY+bi.borderWidth/2-innerBorderWidth/2 ), 
	 	 						pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				break;
	 				case BorderInfo.RIGHT_BORDER:
	 					drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), 
	 	 						layoutPointX2PDF( bi.endX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), 
	 	 						pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+innerBorderWidth/2 ), 
	 	 						layoutPointY2PDF( bi.startY+3*borders[BorderInfo.TOP_BORDER].borderWidth/4 ), 
	 	 						layoutPointX2PDF( bi.endX-bi.borderWidth/2+innerBorderWidth/2 ), 
	 	 						layoutPointY2PDF( bi.endY-3*borders[BorderInfo.BOTTOM_BORDER].borderWidth/4 ), 
	 	 						pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				break;
	 				case BorderInfo.BOTTOM_BORDER:
	 					drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-outerBorderWidth/2 ), 
	 	 						layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-outerBorderWidth/2 ), 
	 	 						pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				drawLine( layoutPointX2PDF( bi.startX+3*borders[BorderInfo.LEFT_BORDER].borderWidth/4 ),