for( int i=0; i<tokens.size(); i++ )
{
Object next = tokens.get( i );
if( next == PDFOperator.getOperator( "re" ) )
{
COSNumber x = (COSNumber)tokens.get( i-4 );
COSNumber y = (COSNumber)tokens.get( i-3 );
COSNumber width = (COSNumber)tokens.get( i-2 );
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;