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
if (width > img.scaledWidth())
				{
					if (height-absPosY > img.scaledHeight())
					{
						template = cbUnder.createTemplate(img.scaledWidth(), img.scaledHeight());
						template.addImage(img, img.scaledWidth(), 0, 0, img.scaledHeight(), 0, 0);
					}
					else
					{
						template = cbUnder.createTemplate(img.scaledWidth(), height);
						template.addImage(img, img.scaledWidth(), 0, 0, img.scaledHeight(), 
								0, -img.scaledHeight()+height);
					}
				}
				while ( remainX > 0 )
				{
					if(remainX<img.scaledWidth())
					{
						
						if (height-absPosY>img.scaledHeight())
						{
							PdfTemplate templateX = cbUnder.createTemplate(remainX, img.scaledHeight());
							templateX.addImage(img, img.scaledWidth(), 0, 0, img.scaledHeight(), 0, 0);
							cbUnder.addTemplate(templateX, x+width-remainX, y-absPosY-img.scaledHeight());
						}
						else
						{
							PdfTemplate templateX = cbUnder.createTemplate(remainX, height);