Welcome !

 Result of search of text in the PDF-file

Author Message

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 11/28/2016
  • Status: offline
Result of search of text in the PDF-file Monday, November 28, 2016 9:22 PM (permalink)
I need to look for a certain text in PDF file. If text is found, then will be executed some action.
I wrote a script which opens the file and finds the text.
How in script to define text is found in file or not?
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "AcroRd32 d:\F6861.pdf"
Do Until Success = True
    Success = objShell.AppActivate("Adobe Acrobat Reader DC")
    Wscript.Sleep 500
objShell.SendKeys "^{f}"
Wscript.Sleep 500
objShell.SendKeys "text"
objShell.SendKeys "{ENTER}"

I will be grateful for examples of decision of similar tasks.
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2017 ASPPlayground.NET Forum Version 3.9