V K
V K

Reputation: 1719

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?

Upvotes: 0

Views: 1933

Answers (2)

V K
V K

Reputation: 1719

I used the pdfbox library for the purpose.It is really cumbersome.But it did get the job done.

Upvotes: 0

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/

Upvotes: 1

Related Questions