Search code examples
c#pdfpdfsharp

How to extract text based on coordinates using PDFsharp?


I want to extract text at the bottom right corner of the PDF using PDFsharp. The only way that is possible is by specifying coordinates.

So, how can I extract text from PDF by specifying coordinates using PDFsharp library?


Solution

  • PDFsharp was not designed for that task. You need third-party code/own code that extracts text along with the co-ordinates.

    Maybe you can use PdfTextract to get started:
    https://www.nuget.org/packages/PdfTextract/