示例#1
0
  protected double getCenterX(String input, com.pdfjet.Font f) {
    double lengthPix = f.stringWidth(input);

    return (560 - lengthPix) / 2;
  }