Created
June 16, 2022 11:18
-
-
Save bjoerntx/0088605c1e88e7dd8776797618b64d49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lines pdfLines = new Lines("lease_agreement.pdf"); | |
string stringToFind = "Agreement"; | |
List<ContentLine> contentLines = | |
pdfLines.Find(new RectangleF(72,83, 10, 10), true); | |
foreach (ContentLine line in contentLines) { | |
Console.WriteLine("Found text on page {0} (X: {1}, Y: {2}): {3}", | |
line.Page.ToString(), | |
line.X.ToString(), | |
line.Y.ToString(), | |
line.Text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment