How to recognize and read data from pdf file using
Descriptive Programming in QTP?



How to recognize and read data from pdf file using Descriptive Programming in QTP?..

Answer / satya

Using third party API:
If you have Acrobat Writer installed you use ArcoExch object
to manipulate pdf files.

Function GetPDFPageCount(filename)
Dim pdfFile,Acroapp,pdf
'PDF File preparations
Set Acroapp = CreateObject("AcroExch.App")
Set pdf = CreateObject("AcroExch.PDDoc")
pdf.Open filename,"temp"
Set pdfFile = pdf.GetPDDoc
GetPDFPageCount = pdfFile.GetNumPages
Set pdffile = nothing
Acroapp.Exit
End Function

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

In a shared Object Repository in QTP if some object is changed how can the other script which is using the same object can be known

6 Answers   iGate,


How to create Reusable and Multiple Actions?

0 Answers  


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

0 Answers  


What is object identification?

8 Answers   Wipro,


i have string "I LIKE INDIA"..how to i get LIKE from the sting..

6 Answers   HealthAsyst,


Give answer with example what is orthogonal array testing technique?

1 Answers   CTS, Wipro,


How can we write script for a .net application in QTP? Can we use VB Script for .net application.

1 Answers  


What is the file extension of the code file & object repository file in QTP?

2 Answers  


I am a beginner plz tell me,how do we write scripts in QTP? In my opinion we can write scipts in expert view or there is another option where we can write scripts. plz tell me.

5 Answers  


for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

2 Answers   FFASVA, Genpact, Wipro,


why can't you use excel directly in qtp. why we want to import excel data into Datatable.

1 Answers   BoA,


How to do excception handling ( error handling ) in QTP

6 Answers   Institute for Medical Education,


Categories