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
y = transformY( y, height );
		writer.addAnnotation( new PdfAnnotation( writer, x, y, x + width, y
				+ height, createPdfAction( hyperlink, bookmark, targetWindow,
				type ) ) );
	}
	public void createTotalPageTemplate( int x, int y, int width, int height )
	{
		createTotalPageTemplate( convertToPoint( x ), convertToPoint( y ),
				convertToPoint( width ), convertToPoint( height ) );
	}
	private void createTotalPageTemplate( float x, float y, float width,
			float height )
	{
		if ( totalPageTemplate == null )
		{
			totalPageTemplate = contentByte.createTemplate( width, height );
		}
		y = transformY( y, height );
		contentByte.saveState( );
		contentByte.addTemplate( totalPageTemplate, x, y );
		contentByte.restoreState( );
	}
	void createToc( TOCNode tocTree )
	{
		TOCHandler tocHandler = new TOCHandler( tocTree );
		TOCNode tocRoot = tocHandler.getTOCRoot( );
		if ( tocRoot == null || tocRoot.getChildren( ).isEmpty( ) )
		{
			writer.setViewerPreferences( PdfWriter.PageModeUseNone );
		}