TextPosition Bounding Box PDFBox
问题 I am trying, from a TextPosition, to draw the corresponding glyph bounding box as shown in the PDF 32000 documentation. Here is my function that does the computation from glyph space to user space @Override protected void processTextPosition(TextPosition text) { PDFont font = pos.getFont(); BoundingBox bbox = font.getBoundingBox(); Rectangle2D.Float rect = new Rectangle2D.Float(bbox.getLowerLeftX(), bbox.getUpperRightY(), bbox.getWidth(), bbox.getHeight()); AffineTransform at = pos