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
case Font.ITALIC:
				{
					simulateItalic(cb, x, y);
					break;
				}
			case Font.BOLD:
				{
	            	simulateBold(cb, x, y);
	            	break;
				}
			case Font.BOLDITALIC:
				{
					simulateBold(cb, x, y);
					simulateItalic(cb, x, y);
					break;
				}
			}
		}
		
		private void simulateBold(PdfContentByte cb, float x, float y)
		{
			cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE);
	    	cb.setLineWidth(0.9f);
	    	cb.setTextMatrix(x, y);
		}
		private void simulateItalic(PdfContentByte cb, float x, float y)
		{
			float alpha = (float) Math.tan(0f * Math.PI / 180);
			float beta = (float) Math.tan(15f * Math.PI / 180);
			cb.setTextMatrix(1, alpha, beta, 1, x, y);