Search for a text in a pdf file and return the coordinates if the text exist

I am focusing on a college job that possesses many pdf data. There should be a hunt through name functions that I simply key in the pupil’s name as well as all the pdf data with his/her label need to open up. What is the most ideal means to carry out this? I have actually tried to find solutions on the net plus all I am happening up with is actually iTextSharp and it’s making extra baffled.

Several PDF tools only implement a number of the spec. Some individuals recommend that the best method to search PDF is to decrease it to an image and after that OCR that.

Aims to me like PdfReader allows a chain which is actually a pathway to the documents you wish to read. Therefore simply change to indicate the report you intend to make use of. If it is actually not in the use’s functioning directory), (you might possess to add a full road.

You possess PdfTextExtractor.GetTextFromPage( pdfReader, webpage, tactic). As well as you have the string you search. Possess you checked out whether your hunt cord is in the result of the GetTextFromPage procedure? If it is not, possess you inspected what the profit of that method appears like (it is actually a string it goes without saying)?

The initial poster utilizes itext (or itextsharp) as suggested in the inquiry tags and also concern body system. You show up to use some other collection, or at minimum the class names you make use of are not itextsharp training class labels.

I located this code as well as I am actually making an effort to customize it to meet my needs.

in a PDF file, it is actually feasible for any kind of word to be actually composed with one leaving instruction per letter, featuring all possible transformations like ‘te’,’s’, as well as ‘t’, not always because order. Back then RenderText is contacted, those different text chunks may not be gathered yet in to one word. So anytime words ‘test’ is not composed consecutively in one making guideline

If the text message exist, I am actually attempting to look for a text message in a pdf report as well as come back the teams up. I was looking into the web as well as discover that this may be performed with the itextsharp collection.

I really want to write a program  making use of dll reference to find for a Specific text during that PDF in C#.

The complying with technique functions fine. It provides the listing of webpages in which the text message is located.

PDF is actually a very complicated specification and it is feasible to develop plenty of variants that it is impossible to parse dependably unless you use the exact same devices to review it as were actually used to create it (and usually not also then). There are actually a number of devices which squash PDF to a message string (e.g. pdf2text) as well as it might be achievable to explore these however it is actually uncertain.

I am actually passing the complete pathway and also the hunt chain however the course simulate the chain is actually certainly not in the pdf file.

Leave a Reply

Your email address will not be published. Required fields are marked *