-
Hopefully, this is an easy one. I have a PDF document and on particular pages is a string of characters. If myString is there, I have to perform various actions. Out of the 18 page document, I can easily see there are 10 pages that contain myString. Trying to automate additional steps, I used page.search_for(myString). Performing page.search_for(myString) only results in 6 pages where myString is found; not 10. As a means of troubleshooting, I used page.get_text('words', pageDimension) and printed them to the console. I can see myString within the list of words on all 10 pages. Is there anything off hand that could prevent the search from picking up myString? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
maybe the needle contains accented characters? In that case the casing is important, e.g. "enchantÉ" will not be found when searching for "enchanté". |
Beta Was this translation helpful? Give feedback.
-
Of course: if the needles are not fully contained in page.rect, then there also can occur problems. |
Beta Was this translation helpful? Give feedback.
Looks ok to me: