Bug 174973 Master page "n of m" page count misaligned in PDF output
The second number in the "n of m" is not aligned vertically with the other elements in the grid. The numbers were aligned in 2.1.1, but are misaligned in 2.1.2 and in BIRT 2.2M4. To reproduce: - Open enclosed report and generate PDF or - Create new report - modify Master page by adding n of m page count - shrink column width of grid to .15 in for each column so the elements are closer together (makes alignment problem noticeable)
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
catch( DocumentException de )
			{
				logger.log( Level.SEVERE, de.getMessage( ), de );
			}
			
			
			Color bc = PropertyUtil.getColor(page.getStyle().getProperty(StyleConstants.STYLE_BACKGROUND_COLOR));
			drawBackgroundColor( bc, 0, pageHeight, pageWidth, pageHeight );
			
			
			drawBackgroundImage(page.getStyle(), 0, pageHeight, pageWidth, pageHeight);
		}
		/**
		 * draw background image for the container
		 * @param containerStyle   the style of the container we draw background image for
		 * @param startX           the absolute horizontal position of the container
		 * @param startY		   the absolute vertical position of the container
		 * @param width            container width
		 * @param height           container height
		 */
		private void drawBackgroundImage(IStyle containerStyle, float startX, float startY, float width, float height)
		{
			String bi = PropertyUtil.getBackgroundImage(
					containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_IMAGE));
			if(bi==null)
			{
				return;
			}
			FloatValue positionValX = (FloatValue)containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_POSITION_X);
			FloatValue positionValY = (FloatValue)containerStyle.getProperty(StyleConstants.STYLE_BACKGROUND_POSITION_Y);