How to create VB Object for a pdf embedded in IE 6 Browser?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default How to create VB Object for a pdf embedded in IE 6 Browser?

    I'm hoping to automate the testing of PDF forms on our web based application. Each PDF form is embedded in IE 6 below a series of hyperlinks. I'm trying to write a VB function which accesses the PDF form already opened in the IE Browser, clicks on the "Button 1" button embedded in the form, then clicks on "Button 2" button. The buttons are in the PDF in the form of gray boxes - Button 2 becomes visible after Button 1 gets clicked. are I've a series a questions on how I get about implementing that.

    * Set pdDoc = CreateObject( "AcroExch.PDDoc" ) How do I make this pdDoc object point to the already open pdf in the browser. The pdDoc.Open() does not seem to accept a URL. Neither does the url end with a ".pdf" since the pdf is displayed at a lower hierarchy in the screen.

    * Currently I'm using the TextSelect method to search for "Button 1" button and then get the co-ordinates for the selected text. Is there any method to get the mouse to click the co-ordinates or to identify the buttons in the form itself?

    I'm very new to the SDK. I've Acrobat 8 & VB installed on my PC. I've read the IAC & related guides but can't seem to make a headway. Any help would be much appreciated.

    Thanks in Advance.
    AP_PacificBlue@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Cannot Create New Instance of COM+ Object After You Repeatedly Restart the COM+ Object
      I've checked that the server I'm working on has win2k sp4 which had a fix from microsoft for this problem. However, it seems that I still have...
    2. DW to create Word sigs with embedded images?
      This may be a bit off topic, but I've tried in many other places.... Microsoft Word can be such crap. I simply wanted to create an email sig with...
    3. Embedded object runs unsigned, but fails when signed.
      After clearing all CAS policies (caspol -q -reset), I access the component defined below through an embedded <object> tag in a simple html page. ...
    4. Improving embedded browser
      Dear sirs, I want to embed a browser inside my Director's movie. I have succeeded in embedding IE Active X control, but although it prefectly...
    5. Embedded web browser
      Hello all, I want to make a movie that has an embedded web browser (using microsoft web browser active-x control). My problem is controlling the...
  3. #2

    Default Re: How to create VB Object for a pdf embedded in IE 6 Browser?

    Your best bet - given IE6 and Acrobat 8 is to use the "hostContainer" fucntionality which will enable the JS in your browser/HTML to communicate with JS in your PDF. Documentation & samples in the SDK.

    Short of that - there isn't much choice unless you simply want to use OS calls to simulate keyclicks/mousedowns.
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: How to create VB Object for a pdf embedded in IE 6 Browser?

    Thank you for your response, Leonard.

    I resumed development of this code yesterday & it turns out that there wasn't a problem after all. By creating an AcroExch.App object & using GetAVDoc, all PDFs opened in the browser windows could be detected.

    I'm wondering if I can get VB (QTP) to enter a string in the Search Text box & get the mouse to click on the highlighted text (which is an embedded button). Could anyone please tell me what Acrobat SDK documents/guides should I be looking at?

    Thank you.
    AP_PacificBlue@adobeforums.com Guest

  5. #4

    Default Re: How to create VB Object for a pdf embedded in IE 6 Browser?

    There is nothing in the SDK to automate clicking of specific buttons. You can execute menu items, but if they bring up a dialog there is no interface for configuring options and clicking buttons.

    You could certainly automate searching for a string and then highlighting it but not in a way that would test the interface, as you would be using the silent SDK methods designed for automation. You would also still have to develop your own way of reliably clicking on buttons, etc. since as I mentioned this is not part of the SDK.
    PDL@adobeforums.com Guest

  6. #5

    Default Re: How to create VB Object for a pdf embedded in IE 6 Browser?

    We have released, on Adobe Labs, a plugin to QTP for integrating with Adobe Acrobat/Reader. Try it out.
    Leonard_Rosenthol@adobeforums.com Guest

  7. #6

    Default Re: How to create VB Object for a pdf embedded in IE 6 Browser?

    Thanks for the update Leonard. This would be an extremely useful plugin. I've been looking for it on <http://labs.adobe.com/technologies/> under the plug-ins tab but have been unable to find it. It wasn't even there in the Pre-Release Programs. Is it located somewhere else or with a different name? Please let me know.

    Meanwhile, I've been trying to write my own VB script to get the button clicked. Here's what I've come up till now-
    FindText

    HiliteList.Add->CreateWordHilite->SetTextSelect->GetBoundingRect->PointToDevice

    The last function seems to be deprecated. Also there's nothing to connect the text highlighted by findtext with HiLiteList.Add. I guess
    I may have to use the JSO word search method.

    Any advice, as always, would be much appreciated.
    AP_PacificBlue@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139