module Origami::String::Encoding::PDFDocEncoding
Constants
- CHARMAP
Public Class Methods
to_pdfdoc(str)
click to toggle source
# File lib/origami/string.rb, line 80 def PDFDocEncoding.to_pdfdoc(str) str end
to_utf16be(pdfdocstr)
click to toggle source
# File lib/origami/string.rb, line 71 def PDFDocEncoding.to_utf16be(pdfdocstr) utf16bestr = UTF16BE::BOM.dup pdfdocstr.each_byte do |byte| utf16bestr << CHARMAP[byte] end utf16bestr.force_encoding('binary') end