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
{
		startY = transformY( startY );
		endY = transformY( endY );
		contentByte.moveTo( startX, startY );
		contentByte.setLineWidth( width );
		contentByte.lineTo( endX, endY );
		contentByte.setColorStroke( color );
		contentByte.stroke( );
	}
	private void drawText( String text, float textX, float textY,
			FontInfo fontInfo, float characterSpacing, float wordSpacing,
			Color color, CSSValue align, boolean isTotalPage )
	{
		PdfContentByte currentContentByte = isTotalPage
				? totalPageTemplate
				: contentByte;
		float containerHeight = isTotalPage
				? totalPageTemplate.getHeight( )
				: pageHeight;
		currentContentByte.saveState( );
		
		currentContentByte.beginText( );
		if ( null != color )
		{
			currentContentByte.setColorFill( color );
			currentContentByte.setColorStroke( color );
		}
		BaseFont font = fontInfo.getBaseFont( );
		float fontSize = fontInfo.getFontSize( );
		currentContentByte.setFontAndSize( font, fontSize );