docs: protected void printFooter(Graphics2D g2d, String footerText)
      {
          FontMetrics fm = g2d.getFontMetrics();
          int stringWidth = fm.stringWidth(footerText);
          int textX = (pageRect.width - stringWidth) / 2 + pageRect.x;
          int textY = pageRect.y + pageRect.height - BORDER;
          g2d.drawString(footerText , textX, textY);
      }