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

Tell me the QTP Advantages and Disadvatages ?

6 Answers   Accenture, CTS, GE,


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

0 Answers  


How to retrive XML file data in QTP ? using Script(Chandana)

6 Answers   Wipro,


In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).

2 Answers  


QTP supports both client server and Web applications. Does it support Plug-in?

0 Answers  


3 differences between QTP & Winrunner?

1 Answers  


can u explain relative path architecture framework in qtp?

1 Answers   Mindlance,


HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST

8 Answers  


OR is full with objects but i want to add 5 more objects,but i tried merging files,shared mode and descriptive ,iwont work.is there any alternative for that

6 Answers   CTS,


How to handle the exceptions using recovery secnario manager in Qtp?

2 Answers  


How to handle the exceptions using the recovery scenario manager in qtp?

1 Answers  


HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.

2 Answers  


Categories