Forum Discussion

Saman_Akhtar's avatar
Saman_Akhtar
Occasional Contributor
4 years ago
Solved

Create Adobe Acrobat objects in Script

How to obtain Adobe acrobat pdf objects in either python or Vbscript without downloading any external packages?

I actually wan to fetch windows title of Open PDF document . And also wants to find out whether the pdf is opened in Adobe Acrobat Reader or PRO?

  • TestComplete can see the basic level of almost any application object.  So, for the document title, you should be able to find something like Sys.Process("adobedc").Window(blablah).  That object should have something like a WndCaption propery which will be the window title that you can then parse out.

     

    As for which application...  That's the Sys.Process.  you can check your list of processes in windows to see if either process name exists when the file is open and make your determinations from there.

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    TestComplete can see the basic level of almost any application object.  So, for the document title, you should be able to find something like Sys.Process("adobedc").Window(blablah).  That object should have something like a WndCaption propery which will be the window title that you can then parse out.

     

    As for which application...  That's the Sys.Process.  you can check your list of processes in windows to see if either process name exists when the file is open and make your determinations from there.