class PDF::Reader::Parser

def pdf_name

reads a PDF name from the buffer and converts it to a Ruby Symbol
###############################################################################
def pdf_name
  tok = @buffer.token
  tok = " " if tok == "" && RUBY_VERSION < "1.9"
  tok.gsub!(/#([A-Fa-f0-9]{2})/) do |match|
    match[1, 2].hex.chr
  end
  tok.to_sym
end