Module: HtmlFromPdf

Defined in:
lib/html_from_pdf.rb,
lib/html_from_pdf/helpers.rb,
lib/html_from_pdf/version.rb,
lib/html_from_pdf/converter.rb,
lib/html_from_pdf/downloader.rb,
lib/html_from_pdf/exceptions.rb

Defined Under Namespace

Modules: Helpers Classes: Converter, ConvertingError, Downloader, PdfNotFound, UnrecognizedOption

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.convert(pdf_path, html_path = nil, options: {}) ⇒ Object



12
13
14
15
# File 'lib/html_from_pdf.rb', line 12

def self.convert(pdf_path, html_path = nil, options: {})
  convert_pdf_to_html(pdf_path, html_path, options)
rescue
end

.convert!(pdf_path, html_path = nil, options: {}) ⇒ Object



17
18
19
# File 'lib/html_from_pdf.rb', line 17

def self.convert!(pdf_path, html_path = nil, options: {})
  convert_pdf_to_html(pdf_path, html_path, options)
end