Retrieves collection of all characters drawn on the page with their bounding rectangles.
public PdfCollection<PdfTextData> GetChars()
Collection of all characters drawn on the page with their bounding rectangles.
You can check the following conditions to detect whether an extracted character is visible on the page:
- Layer should be absent or visible.
- RenderingMode should not be equal to NeitherFillNorStroke or AddToPath.
- Bounds should fit into the corresponding ClipRegion. You can use IsVisible(PdfRectangle) method for this check.
- If you know the background color of the page, then you may check that the character color is different. You can use Brush and/or Pen properties depending on the RenderingMode.