Bug 183541 [Automation][Regression] total page auto text did not work properly in pdf report
steps to reproduce: - use the attached report design - preview in pdf expected behavior: - total page auto text should be output properly actual behavior: - it did not do so
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFPage.java
{
						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 )