class RTFtoPDF::RTF

Attributes

content[RW]

Public Class Methods

parse(content) click to toggle source
# File lib/rtftopdf/rtf.rb, line 7
def self.parse content
  rtf = new
  rtf.content = content
  rtf
end

Public Instance Methods

to_html() click to toggle source
# File lib/rtftopdf/rtf.rb, line 13
def to_html
  TemporaryFile.within_a_file(content) do |file|
    `unrtf #{file.path}`
  end
end