title: Extract / identify text inside circles in .pdf files using iTextSharp
body: <p>I use iTextSharp to extract text line by line from .pdf's and it works very well.</p>
  
  <p>I am now looking at engineering drawings and have a need to identify lines of text that resides inside boundaries of circles in my file.</p>
  
  <p><a href="https://i.stack.imgur.com/pDBe4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pDBe4.jpg" alt="enter image description here"></a></p>
  
  <p>There can be many circles (not overlapping) in my files which typically have 2 or 3 lines of text inside the circle boundary.</p>
  
  <p>Does anyone know if this is possible using iTextSharp?</p>
  
  <p>Here is my existing code:</p>
  
  <pre><code>Try
  
  Using reader As New PdfReader(filePath)
  
      For intPages As Integer = 1 To reader.NumberOfPages
          If intFirst = 1 Then
              sbTXT.Append(Trim(PdfTextExtractor.GetTextFromPage(reader, intPages, New LocationTextExtractionStrategy())))
              intFirst = 2
          Else
              sbTXT.Append(Environment.NewLine &amp; Trim(PdfTextExtractor.GetTextFromPage(reader, intPages, New LocationTextExtractionStrategy())))
          End If
      Next
  
  End Using
  
  Catch ex As Exception
  MsgBox("There was an error extracting text from the file", vbInformation, "Error Extracting Text")
  
  End Try
  </code></pre>