PDF .NET Library Logo
Home Products Code Library Online Demos Support Forum Buy About Us  
Code Library

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);

op.Close();

Console.WriteLine(text);

Back to PDF Code Library