Method: Pdf2htmlex#convert
- Defined in:
- lib/pdf2htmlex.rb
#convert(input_pdf, html_filename = nil, **options) ⇒ Pathname
Convert input PDF file to HTML
89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/pdf2htmlex.rb', line 89 def convert(input_pdf, html_filename = nil, **) [:dest_dir] ||= make_tempdir output = output_html([:dest_dir], html_filename || input_pdf) command = () command << input_pdf command << output.basename.to_s run_command(command) output end |