![]() ![]() Adobe Reader is not the only pdf reader that can find text in multiple pdf documents. Advanced Search on the other hand is triggered with the shortcut Shift-Ctrl-f or via the Edit > Advanced Search menu. It will only search for "David" but not the whole string of terms, which is what I want. You can initiate a standard search by pressing Ctrl-f, or selecting the Edit > Search option from the menu. These include the following: Basic Search Advanced Search Basic Search Options. search results returned must have the exact phrase and at least one of the OR. So this script works but not really how I want it to. There are several ways to search for information within a PDF document. In this example we are running an exact phrases. In the Search window, type the search text. KTerm = "David, Final, End, Score, Birthday, Hello Ben" In the Find toolbar, type the search text, and then choose Open Full Acrobat Search from the pop-up menu. All the words youve searched for need to be in a document in order for it to appear among the search results, but the order of those words can be different. Issue 693 pymupdf/PyMuPDF GitHub Closed opened this issue 14 comments sucanthudu Detecting a keyword on a page is done by checking archFor (keyword). #define keyterms David, Final, End, Score, Birthday, Hello Ben I need to search for multiple keywords in a pdf document and extract the specific pdfpages, please kindly help me out in solving this. What I have so far: import PyPDF2 as PDF #import pdf module I'm aware that the actual desired final script would require additional methods from the os module, however my knowledge of Python is a little sketchy at times.ĭespite what I thought was going to be a basic task, Google keeps failing me, and it seems like I'm asking too much of a specific question, hence why I'm here. Enabling text-searchability in multiple documents at once can be accomplished by selecting Tools > Text Recognition > In Multiple Files. I was hoping to extend this script for multiple words and PDFs. I have a script which will take 1 word and then try and find it in 1 PDF, which, like the word, is provided by myself. I'm trying to write a Python Script which will load multiple PDF files and then search for specific words. ![]()
0 Comments
Leave a Reply. |