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
String link = actionHandler.getURL( act, context );		
						writer.addAnnotation( new PdfAnnotation( writer,
								layoutPointX2PDF(areaX),
								layoutPointY2PDF(areaY+area.getHeight()),
								layoutPointX2PDF(areaX+area.getWidth()),
								layoutPointY2PDF(areaY),
			            		createPdfAction(link.toString(), null, hlAction.getTargetWindow(), IHyperlinkAction.ACTION_DRILLTHROUGH )));
						break;
					}
				}
				catch (Exception e)
				{
					logger.log(Level.WARNING, e.getMessage(), e);
				}
			}
		}
		
		/**
		 * Creates a PdfAction.
		 * 
		 * @param hyperlink			the hyperlink.
		 * @param bookmark			the bookmark.
		 * @param target			if target equals "_blank", the target will be opened in a new window,
		 * 							else the target will be opened in the current window.
		 * @return					the created PdfAction.
		 */
		private PdfAction createPdfAction(String hyperlink, String bookmark, String target, int type)
		{
			if ("_blank".equalsIgnoreCase(target))