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
import com.lowagie.text.pdf.BaseFont;
import com.lowagie.text.pdf.PdfAction;
import com.lowagie.text.pdf.PdfAnnotation;
import com.lowagie.text.pdf.PdfBorderDictionary;
import com.lowagie.text.pdf.PdfContentByte;
import com.lowagie.text.pdf.PdfDestination;
import com.lowagie.text.pdf.PdfOutline;
import com.lowagie.text.pdf.PdfTemplate;
import com.lowagie.text.pdf.PdfTextArray;
import com.lowagie.text.pdf.PdfWriter;
public class PDFPage implements IPage
{
	/**
	 * The Pdf Writer
	 */
	private PdfWriter writer = null;
	/**
	 * Template for totalpage
	 */
	private static PdfTemplate totalPageTemplate = null;
	/**
	 * ContentByte layer for pdf, cb covers cbUnder.
	 */
	private PdfContentByte contentByte, cbUnder = null;
	/**
	 * The height and width of the current pdf page.
	 */
	private float pageHeight = 0f;
	private Logger logger = Logger.getLogger( PDFPage.class.getName( ) );
	public PDFPage( int pageWidth, int pageHeight, Document document,