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 = tok.dup.gsub(/#([A-Fa-f0-9]{2})/) do |match|
    match[1, 2].hex.chr
  end
  tok.to_sym
end