Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Acrobat SDK, question?
#7
Yes, what you suggested is the right idea. However, something quirky is going on. Not surprising because this whole SDK is quirky. When I use the code as you show.
Code:
Copy      Help
;/exe 1
typelib Acrobat {78165D71-DF28-11d3-9A89-005004A56D53} 1.0
Acrobat.AcroApp app._create
Acrobat.AcroAVDoc avdoc=app.GetActiveDoc()
str myt = avdoc.GetTitle()

out myt
or
Code:
Copy      Help
;/exe 1
typelib Acrobat {78165D71-DF28-11d3-9A89-005004A56D53} 1.0
Acrobat.AcroApp app._create
Acrobat.AcroAVDoc avdoc=app.GetActiveDoc()
avdoc.FindText("long", 0, 0, 0)
it works very well. However, when used with the AcroPDTextSelect method (below) I get all types of errors. The document makes it clear on this page (131) that the text result needs to be output in some type of loop. But I can even get basic results to fire.
Code:
Copy      Help
;/exe 1
typelib Acrobat {78165D71-DF28-11d3-9A89-005004A56D53} 1.0
Acrobat.AcroApp app._create
Acrobat.AcroPDTextSelect avdoc=app.GetActiveDoc()
int myt = avdoc.GetNumText()

out myt
Thanks


Messages In This Thread
Acrobat SDK, question? - by pctechtv - 03-13-2022, 03:24 AM
RE: Acrobat SDK, question? - by Gintaras - 03-13-2022, 05:42 AM
RE: Acrobat SDK, question? - by pctechtv - 03-13-2022, 07:49 AM
RE: Acrobat SDK, question? - by pctechtv - 03-13-2022, 08:35 PM
RE: Acrobat SDK, question? - by Gintaras - 03-13-2022, 08:54 PM
RE: Acrobat SDK, question? - by pctechtv - 03-13-2022, 09:02 PM
RE: Acrobat SDK, question? - by pctechtv - 03-14-2022, 12:00 AM
RE: Acrobat SDK, question? - by pctechtv - 03-14-2022, 04:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)