I have QTP 10.0 and Adobe reader 9.3 installed on my machine. The machine I am using is a VMware device.
I have downloaded and installed the PDF Test Toolkit and the Adobe SDK.
For QTP I have the ActiveX, Web and Adobe add ins loaded.
I do not have Acrobat loaded.
For my first script all I wanted to do was open an existing PDF. I used the code displayed below.
___________________________________
Option Explicit
Dim gApp
Dim gPDDoc
'### Create objects required for the test
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
'### Open a PDF Document
gPDDoc.Open ("C:\TestData\PerfOnVMware")
'### Kill all created objects
Set gPDDoc = Nothing
Set gApp = Nothing
__________________________________________
For both Set statements (in italics) I am getting the following message
"ActiveX Component Can't Create Object "AcroExch.App"
Also, as to the instructions. I read the instructions to mean that you need the Adobe Reader OR Adobe Acrobat. However in some of the research I have been doing on other boards many of the solutions indicate that Acrobat is required. Can some one take a moment and clarify what I will need installed on each machine in order to create and execute scripts.
Any thoughts would be helpful
Thanks
Mike
Please see the document 'Interapplication Communication API Reference' in the Acrobat SDK. Reader doesn't support the AcroExch methods. You can use the DDE methods. For more quesitions, please visit the SDK forum:
http://forums.adobe.com/community/acrobat/acrobat_sdk
You should still be able to record and playback UI events in Reader.
Thanks - John Briere
Engineering Manager, Acrobat Production Engineering
Hi Mike,
Sorry for the late reply. I was on vacation.
Thank you very much for your reply.
My prob got solved by using Systemutil.run
Thanks,
Anusha Pappula
Consultant | HSBC CML Testing Team
Financial Services Global Business Unit
Phone: +91 020 27601000 / Extn: 2032335/
Mobile: +91 88888 04393
www.capgemini.com/financialservices/
B-1, Cerebrum IT Park, Kalyani Nagar, Pune – 411014 INDIA
If your probelm is still unsolve. My recomendation is to try Classic PDF Editor, its working fine with me. Thanks
North America
Europe, Middle East and Africa
Asia Pacific