class Bookshelf::Parser::PDF

Public Instance Methods

html_file() click to toggle source
# File lib/bookshelf/parser/pdf.rb, line 8
def html_file
  Bookshelf.root_dir.join("output/#{name}.html")
end
parse() click to toggle source
# File lib/bookshelf/parser/pdf.rb, line 4
def parse
  spawn_command ["prince", html_file.to_s, "-o", pdf_file.to_s]
end
pdf_file() click to toggle source
# File lib/bookshelf/parser/pdf.rb, line 12
def pdf_file
  Bookshelf.root_dir.join("output/#{name}.pdf")
end