Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
AP_PacificBlue@adobeforums.com #1
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
-
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... -
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... -
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. ... -
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... -
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... -
Leonard_Rosenthol@adobeforums.com #2
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
-
AP_PacificBlue@adobeforums.com #3
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
-
PDL@adobeforums.com #4
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
-
Leonard_Rosenthol@adobeforums.com #5
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
-
AP_PacificBlue@adobeforums.com #6
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



Reply With Quote

