On Wed, Mar 5, 2014 at 12:01 PM, Arup Rakshit <lists / ruby-forum.com> wrote:

> File.open("#{__dir__}/a.pdf",'rb') do |io|
>   reader = PDF::Reader.new(io)
>   reader.pages.each do |page|
>     puts page.text
>   end
> end
>
> It is working. But `text` gives whole page content at a time. Can I read
> the page line by line ?

'page.text' is just a string; you can manipulate it any way you want.
If you want "lines", split the text on line-ending characters.

Good luck,
-- 
Hassan Schroeder ------------------------ hassan.schroeder / gmail.com
http://about.me/hassanschroeder
twitter: @hassan