# File lib/pdf/reader/buffer.rb, line 107 def ready_token (with_strip=true, skip_blanks=true) while (@buffer.nil? or @buffer.empty?) && !@io.eof? @buffer = @io.readline @buffer.force_encoding("BINARY") if @buffer.respond_to?(:force_encoding) #@buffer.sub!(/%.*$/, '') if strip_comments @buffer.chomp! break unless skip_blanks end @buffer.lstrip! if with_strip end