docs: public void surveyPage(PageFormat pageFormat, Graphics2D g2d, boolean bPrintHeader)
      {
          pageRect = new Rectangle((int)pageFormat.getImageableX(), (int)pageFormat.getImageableY(), (int)pageFormat.getImageableWidth(), (int)pageFormat.getImageableHeight());
  
          FontMetrics fm = g2d.getFontMetrics();
          int textHeight = fm.getHeight();
          if (bPrintHeader)
          {
              headerHeight = textHeight + HEADER_MARGIN + BORDER;
              footerHeight = textHeight + HEADER_MARGIN + BORDER;
          }
      }