Skip to content

ronistiawan/get-text-coordinate-from-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Text Coordinate in PDF file using .Net Core (C#)

How To Use

var pdfFilename = @"PathToYourPDF\random.pdf";
var textToFind = "Lombok";
var pageNumber = 1;
var point = PdfTools.GetTextCoordinate(textToFind, pdfFilename , pageNumber);
Console.WriteLine($"{point.X},{point.Y}");

If the text is not found, point.X = point.Y = -1

How To Execute

git clone https://github.com/ronistiawan/get-text-coordinate-from-pdf.git
cd get-text-coordinate-from-pdf/ConsoleApp

dotnet run

About

Find text in a pdf file and return the coordinate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages