Jump to content

fujibot

Members
  • Posts

    1
  • Joined

  • Last visited

fujibot's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello everyone. This is my first post here and I'm a bit of a AutoIt newbie. I'm having trouble using the SetTextSelection method with Acrobat's API. Here is some code that is simple and works up until the last statement. Any clues? My goal is to declare a rectangle and grab the text inside it. Any help? $filetest = "c:\scotta\2pages.pdf" $App = ObjCreate("AcroExch.App") $App.Show ;so far so good $AVDoc = ObjCreate("AcroExch.AVDoc") $AVDoc.Open($filetest, "") ;interestingly, this only opens the file every other time, but acrobat always starts. hmmm.... $PDDoc = ObjCreate("AcroExch.PDDoc") $PDTextSelect = ObjCreate("AcroExch.PDTextSelect") ; Not sure if I even need this $acroRect = ObjCreate("AcroExch.Rect") $acroRect.Bottom = 200 $acroRect.Left = 400 $acroRect.Right = 400 $acroRect.Top = 400 $PDDoc.CreateTextSelect(0,$acroRect) ;doesn't crash here so keep going.... $AVDoc.SetTextSelection(What goes in here? Anyone?) ;BOOM! crash.....:-( ~ Thanks for any input/help at all.
×
×
  • Create New...