Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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
End Function

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

In QTP where i have to concentrate more in the Interview point of View

1 Answers  

How to display the first 3 letters in these "ABCDEFGH" using qtp script?

6 Answers   Oracle,

if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,

write a qtp code to display all the items in the fly from combo box or list box

3 Answers  

How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it

1 Answers   TCS,

how much space occupies in object respository by default?

5 Answers   VSoft,

What is All object and Local object in Object Repositary? Explain me please.

3 Answers  

Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?

2 Answers  

how to write vbscript on web applications in qtp. explian with one example?

4 Answers   Wipro,

Think and Reply.. can we parameterize radio buttons, check boxes? as in flight web site on flight preference page, choosing different flight produces trouble if from port and to port been parameterize, and runs. Try it by own you will get the error.

3 Answers   Patni,

How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.

2 Answers   Accenture, CSC,

Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..

0 Answers