title: iTextSharp IExtRenderListener and boundingbox
body: <p>I'd like to get bounding box of pdf objects (text and vectorial) but i get strange results </p>
  
  <pre><code> For i As Integer = 0 To renderInfo.SegmentData.Count - 2 Step 2
          Dim x As Single = renderInfo.SegmentData(i)
          Dim y As Single = renderInfo.SegmentData(i + 1)
          Dim a As parser.Vector = New parser.Vector(x, y, 1).Cross(renderInfo.Ctm)
          x = a(parser.Vector.I1)
          y = a(parser.Vector.I2)
          lastRect = New System.util.RectangleJ(x, y, 0, 0)
          If Not IsNothing(lastRect) Then
              If lastRect.X &lt; minX Then
                  minX = lastRect.X
              End If
              If lastRect.X &gt; maxX Then
                  maxX = lastRect.X
              End If
              If lastRect.Y &lt; minY Then
                  minY = lastRect.Y
              End If
              If lastRect.Y &gt; maxY Then
                  maxY = lastRect.Y
              End If
          End If
      Next
  </code></pre>
  
  <p>This is the core of my ModifyPath implementation, it works with some PDFs but it doesn't work with few ones (<a href="http://data.sygest.it/download/so_002.zip" rel="nofollow noreferrer">like this</a>).
  I'd like to get the same values as GhostScript BoundingBox data :  67 376 561 746</p>
  
  <p>Any ideas?</p>