Class/Module Index [+]

Quicksearch

Origami::String::Encoding::PDFDocEncoding

Constants

CHARMAP

Public Class Methods

to_pdfdoc(str) click to toggle source
# File lib/origami/string.rb, line 85
def PDFDocEncoding.to_pdfdoc(str)
  str
end
to_utf16be(pdfdocstr) click to toggle source
# File lib/origami/string.rb, line 75
def PDFDocEncoding.to_utf16be(pdfdocstr)

  utf16bestr = "#{UTF16BE::MAGIC}"
  pdfdocstr.each_byte do |byte|
    utf16bestr << CHARMAP[byte]
  end

  utf16bestr
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.