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

Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?

3 Answers  


can u Give Procedure to Handle Pop Window & write Code for that

2 Answers   CTS,


Is there a function to find the number of occurrences of sub strings within a string?

1 Answers  


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,


How to enter table check points?

2 Answers  






What will be happen if i load object repository at run time, but it has already associated.

0 Answers   NTT Data,


What is 'sleep' in sync point?

0 Answers  


In what situations QTP will not recognize the Objects?

6 Answers   Wipro,


IF application is a Java-based application means 2 0r 3 tier application. How the script will be in QTP. pls kindly give some sample script.

5 Answers   Wipro,


How can we change the .mtr file to .tsr file and vice-versa

3 Answers   Wipro,


How many tabs are available to view your test in a test pane and what are they?

0 Answers  


1. How can we use same object repository and Testscript which is in English flavor to check the application in different languages thru QTP?(Chinese,Dutch,French) - I generated script in english and want to use the same script with different languages? - for windows i used regular expressions - I need for edit box,button and combobox, (English,French,Dutch,Chinese) These are the properties of a button in different languages Properties English Dutuch Chinese French x 400 758 631 601 y 673 603 592 676 windowstyle 1342242816 1342242816 1342242816 1.34E+09 windowid 2 2 2 2 windowextended style 4 4 4 4 width 120 120 120 120 visible TRUE TRUE TRUE TRUE righttoleft reading FALSE FALSE FALSE FALSE righttoleftlayout FALSE FALSE FALSE FALSE rightaligned FALSE FALSE FALSE FALSE regexpwndtitle cancel Loschen Chinese language Annuler regexpwndclass button button button button objectclass button button button button hwnd 132872 657228 656932 656782 height 33 33 33 33 focused FALSE FALSE FALSE FALSE enabled TRUE TRUE TRUE TRUE attached text abs_y 669 599 627 597 abs_x 396 754 588 672 text cancel Loschen Chinese language Annuler nativeclass button Button ordinal Identifier type,Value none none none none smartidentification FALSE FALSE FALSE FALSE comment

1 Answers   TCS,


Categories