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

How to capture the Check point Value into a variable?

2 Answers  


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

0 Answers  


I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic

4 Answers   Accenture, Acentia, LM,


What are the Features & Benefits of Quick Test Pro (QTP)..?

5 Answers  


How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting

9 Answers  






w is configaration management

3 Answers   TCS,


when u script reveiwing in which area u more concentrates?

0 Answers   IBM,


give me the code for check point for validating application

1 Answers  


what is throw object ?

1 Answers  


Hi Samrat, Thank u very much, what u said it is right.

0 Answers  


How to automate the windows dialog box which is coming in the run mode? Whenever I run my scripts,I am getting dialog box ( for ex: Pls enter zipcode" eventhough I already entered the value,the dialog box pops up).I need to click it. Pls give some idea-How to automate the dialog box which is pop up in the runtime.

2 Answers  


How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")

0 Answers  


Categories