Bug 137444 Can not preview the old file with PDF
Details: Can not preview the old file with PDF Please run the attached file with PDF, it can not preview. But HTML and web view is no problem.
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
else
					
					{
						while ( remainX > 0 )
						{
							
							if(remainX < img.scaledWidth())
							{
								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-height+remainY-img.scaledHeight());
								remainX=0;
							}
							else
							{
								cbUnder.addTemplate(template, x+width-remainX, y-height+remainY-img.scaledHeight());
								remainX-=img.scaledWidth();
							}
						}
						remainY -= img.scaledHeight();
					}
				}
			}
		} catch (IOException ioe)
		{
			logger.log( Level.WARNING, ioe.getMessage( ), ioe );
		} catch (BadElementException bee)
		{
			logger.log( Level.WARNING, bee.getMessage( ), bee );
		} catch (DocumentException de)