Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.pdf file automation
#1
Not Solved
Hii all.....

I am just a beginner in qtp....I need your help......

I have a .pdf file which has different fields like a radio button, check box and text fields etc..I need to automate such a .pdf doc....I am trying to send the data through an excel data sheet.........has any one done this before........can you please tell me how do I go about it....
Reply
#2
Not Solved
I didnt get you.
Do you want to know how to work with Excel or PDF?

1) To work with PDF:
Adobe provides methods to make the content of a PDF file available to assistive technology
such as screen readers.
On The Microsoft Windows operating system, Adobe Acrobat and Adobe Reader export PDF
content as COM objects. applications can interface with Acrobat or Adobe Reader in two
Ways :
1. Through Microsoft's Active Accessibility( MSAA ) interface, using MSAA objects that
Acrobat or Adobe Reader exorts.
2. Directly through exported COM objects that allow access to the PDF document's
internal structure, called the Document Object Model( DOM ).

The Acrobat SDK is a set of tools that help you develop software that interacts with Acrobat
technology. The SDK contains header files, type libraries, simple utilities, sample code, and
documentation. Using the Acrobat SDK, you can develop software that integrates with
Acrobat and Adobe Reader

You need to have Both Adobe and Acrobat SDK to work with pdf files.
Example:
Code:
Dim gApp, gPDDoc, jso
Set gApp = CreateObject( "AcroExch.App" )
Set gPDDoc = CreateObject( "AcroExch.PDDoc" )
If gPDDoc.Open( "c:\SomePdfFile.pdf" ) Then
Set jso = gPDDoc.GetJSObject()
jso.console.Show
jso.console.Clear
jso.console.println ( "Try doing more research on this...")
gApp.Show
End If
Set jso = Nothing : Set gPDDoc = Nothing : Set gApp = Nothing


2) To Work with Excel:
check this out..
https://www.learnqtp.com/
Reply
#3
Not Solved
Hii

I didnt mean that i need to work with excel files.....
I meant that I need to parametrize the values to the pdf file through an excel sheet........
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 12,050 02-18-2017, 04:20 AM
Last Post: alexwhite
  PDF Automation vijayendra.shukla 5 5,726 07-05-2013, 02:06 PM
Last Post: Staff
  Save an Open PDF file mv8167 0 3,501 04-03-2012, 01:45 AM
Last Post: mv8167
  ISO file is downloaded as 1 kb from HP Mercury site..can't mount file either.... amipraj1 1 3,934 04-06-2011, 03:12 PM
Last Post: Ankur
  PDF file opreations using qtp 9.2 srikanth.0201 1 4,382 03-02-2011, 05:13 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)