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
PdfWriter writer )
	{
		float ratio = PDFConstants.LAYOUT_TO_PDF_RATIO;
		this.pageHeight = pageHeight / ratio;
		this.writer = writer;
		
		try
		{
			Rectangle pageSize = new Rectangle( pageWidth / ratio, pageHeight
					/ ratio );
			document.setPageSize( pageSize );
			if ( !document.isOpen( ) )
				document.open( );
			else
				document.newPage( );
			this.contentByte = writer.getDirectContent( );
			this.cbUnder = writer.getDirectContentUnder( );
		}
		catch ( DocumentException de )
		{
			logger.log( Level.SEVERE, de.getMessage( ), de );
		}
	}
	static void reset( )
	{
		totalPageTemplate = null;
	}
	public void clip( int startX, int startY, int width, int height )
	{
		clip( convertToPoint( startX ), convertToPoint( startY ),