# File lib/pdf/reader/font.rb, line 62 def to_utf8(params) raise UnsupportedFeatureError, "font encoding '#{encoding}' currently unsupported" if encoding.kind_of?(String) if params.class == String # translate the bytestram into a UTF-8 string. # If an encoding hasn't been specified, assume the text using this # font is in Adobe Standard Encoding. (encoding || PDF::Reader::Encoding.new(:StandardEncoding)).to_utf8(params, tounicode) elsif params.class == Array params.collect { |param| self.to_utf8(param) } else params end end