PDF .NET Library Logo

How to extract text from a specific area of an existing PDF document.

The following code extracts text from a specific region on a PDF page.

C# sample:

PDFOperation op = new PDFOperation("sample.pdf", ""); 

int pageNumber = 1;

string text = op.ExtractText(pageNumber, new RectangleF(880, 740, 120, 20), UnitOfMeasure.Pixel);



Back to PDF Code Library