Bug 124444 Preview attached file in pdf will display nothing.
Description: Preview attached file in pdf will display nothing. Steps to reproduce: 1. Preview attached design file in pdf Expected result: Report content shows Actual result: Wait for 10 minutes but nothing showed at all
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
template = cbUnder.createTemplate(img.scaledWidth(), img.scaledHeight());
					template.addImage(img, img.scaledWidth(), 0, 0, img.scaledHeight(), 0, 0);
				}
				
				while (remainY > 0)
				{
					remainX = width;
					
					if (remainY < img.scaledHeight())
					{
						while (remainX > 0)
						{
							
							if (remainX < img.scaledWidth())
							{
								PdfTemplate templateXY = cbUnder.createTemplate(remainX, remainY);
								templateXY.addImage(img,
										img.scaledWidth(), 0, 0, img.scaledHeight(), 
										0, -img.scaledHeight()+remainY);
								cbUnder.addTemplate(templateXY, x+width-remainX, y-height);
								remainX = 0;
							} else
							
							{
								PdfTemplate templateY = cbUnder.createTemplate(img.scaledWidth(),remainY);
								templateY.addImage(img,
										img.scaledWidth(), 0, 0, img.scaledHeight(),
										0, -img.scaledHeight()+remainY);
								cbUnder.addTemplate(templateY, x+width-remainX, y-height);
								remainX -= img.scaledWidth();