COSNumber height = (COSNumber) tokens.get(i - 1);
PDRectangle potentialSmallest = new PDRectangle();
potentialSmallest.setLowerLeftX(x.floatValue());
potentialSmallest.setLowerLeftY(y.floatValue());
potentialSmallest.setUpperRightX(x.floatValue() + width.floatValue());
potentialSmallest.setUpperRightY(y.floatValue() + height.floatValue());
if (smallest == null
|| smallest.getLowerLeftX() < potentialSmallest.getLowerLeftX()
|| smallest.getUpperRightY() > potentialSmallest.getUpperRightY())
{
smallest = potentialSmallest;