Thanks Sameh and Juuser for your valuable and crystal-clear replies.
The code, which you provided worked like a gem. Now, we are able to
read 'pdf' files using Ruby.
However, there is a small obstacle. The application, which were
trying to automate with Watir, has a lot of 'Modal Dialogs' and so, we
are using 'Ruby 1.82', which, according to the instructions given in
"
http://wtr.rubyforge.org", only can support these dialogs. The 'pdf-
toolkit' code, though works perfectly with Ruby 1.85 (the latest but
one version of Ruby), it does not work with "Ruby 1.82". The code
throws some error "undefined method gem or something in one of its
internal files".
So, I was wondering if it was possible to change the value of the
"Environment Variable", 'Path', through a 'DOS' command to point to
the 'Ruby 1.85' installation in the same computer and running this
'pdf_read' program so as to execute it. Is this (having two versions
of Ruby installed in the computer and switching between versions
whenever needed) possible? or if there is any other way to get round
this?
Thanks again,
Vijay.
On Aug 4, 2:26 am, Sameh <
sam.abdelha...@gmail.com> wrote:
> Hey Vijay,
> The process is a little complicated and not so straightforward.
>
> First you will need to download pdftk. Download these files and
> extract the files only in the C:\windows\system32 folder.
http://www.accesspdf.com/article.php/20041130153545577
> Then you will need the PDF::TOOLKIT gem. This can be found herehttp://
rubyforge.org/projects/pdf-toolkit/
> > Vijay.- Hide quoted text -
>
> - Show quoted text -