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
{
				drawRawLine(startX, startY, endX, endY, width, color, contentByte);
			}
			contentByte.restoreState();
		}
		
		/**
		 * Draws a line with the line-style specified in advance from the start position to 
		 * the end position with the given linewidth, color, and style at the given pdf layer.
		 * If the line-style is NOT set before invoking this method, 
		 * "solid" will be used as the default line-style. 
		 * 
		 * @param startX			the start X coordinate of the line
		 * @param startY 			the start Y coordinate of the line
		 * @param endX 				the end X coordinate of the line
		 * @param endY 				the end Y coordinate of the line
		 * @param width 			the lineWidth
		 * @param color 			the color of the line
		 * @param contentByte 		the given pdf layer
		 */
		private void drawRawLine(float startX, float startY, float endX, float endY, float width, 
				Color color, PdfContentByte contentByte )
		{
			contentByte.moveTo(startX, startY);
			contentByte.setLineWidth(width);
			contentByte.lineTo(endX, endY);        
			contentByte.setColorStroke(color);
			contentByte.stroke();
		}