if you have the professional version of acrobat, not the downloadable 
reader, you can use ole to access it

http://www.adobe.com/devnet/acrobat/pdfs/iac_developer_guide.pdf

I havent read through to see if its possible to extract the text though

----- Original Message ----- 
From: "Paul Rogers" <[EMAIL PROTECTED]>
To: <wtr-general@rubyforge.org>
Sent: Thursday, April 26, 2007 2:43 PM
Subject: Re: [Wtr-general] Can Watir do - verify the file opened in PDF or 
Excelfrom?


> excel and word should be easy enough - watir doesnt do it directly, but
> there are plenty of posts out there to guide you through using the ole
> interface into word/excel from Ruby
>
> I dont know how you would do it for pdf though
>
> Paul
>
> ----- Original Message ----- 
> From: "Kui Zhang" <[EMAIL PROTECTED]>
> To: <wtr-general@rubyforge.org>
> Sent: Thursday, April 26, 2007 2:25 PM
> Subject: [Wtr-general] Can Watir do - verify the file opened in PDF or
> Excelfrom?
>
>
>> Hello Watir exporters,
>>
>> I am using selenium RC testing tool writing in JAVA to automate the test
>> cases. I can automate everything in web browser. But the web application
>> does file download or open file in Acrobat Reader, Word or Excel.  Once
>> the no web Download file window is open, or view file open in Word/Excel,
>> I could not using selenium to do anything with the files or windows. I
>> need to do the followings with these windows:
>>
>> Enter the file name to download and click OK
>>
>> Make sure the PDF window is open, verify text in the PDF file, and close
>> the file
>>
>> Make sure the Excel window is open, verify data in the worksheet, and
>> close the file
>>
>> Can Watir handle these cases?
>>
>> Thank you for your help!
>> Kui
>> _______________________________________________
>> Wtr-general mailing list
>> Wtr-general@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/wtr-general
>>
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to