Method: PDF::Reader::GlyphHash#unicode_to_name

Defined in:
lib/pdf/reader/glyph_hash.rb

#unicode_to_name(codepoint) ⇒ Object

attempt to convert a Unicode code point to the equivilant PDF Name. Returns nil if no conversion is possible.

h = GlyphHash.new

h.unicode_to_name(65)
=> [:A]

h.unicode_to_name(8364)
=> [:Euro]

h.unicode_to_name(34)
=> [:34]


99
100
101
# File 'lib/pdf/reader/glyph_hash.rb', line 99

def unicode_to_name(codepoint)
  @by_codepoint[codepoint.to_i] || []
end