Class: PdfParadise::PdfToHtml

Inherits:
Base
  • Object
show all
Defined in:
lib/pdf_paradise/utility_scripts/pdf_to_html.rb

Overview

PdfParadise::PdfToHtml

Constant Summary collapse

NAMESPACE =
#

NAMESPACE

#
inspect

Instance Method Summary collapse

Methods inherited from Base

#basename, #be_verbose?, #change_directory, #commandline_arguments?, #copy_file, #delete_file, #e, #ecomment, #esystem, #first_argument?, #gold, #infer_the_namespace, #input_without_leading_hyphens?, #internal_hash?, #is_an_image_file?, #is_on_roebe?, #lightsteelblue, #log_dir?, #mkdir, #mv, #n_pages?, #namespace?, #no_file_at, #opne, #orange, #reset_the_internal_hash, #return_commandline_arguments_starting_with_hyphens, #return_files_from_the_commandline_arguments, #return_pwd, #rev, #set_be_quiet, #set_commandline_arguments, #steelblue, #try_to_ensure_that_this_directory_exists, #write_what_into

Constructor Details

#initialize(i = ARGV, run_already = true) ⇒ PdfToHtml

#

initialize

#


32
33
34
35
36
37
38
39
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 32

def initialize(
    i           = ARGV,
    run_already = true
  )
  reset
  set_commandline_arguments(i)
  run if run_already
end

Instance Method Details

#opnnObject

#

opnn

#


51
52
53
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 51

def opnn
  super(NAMESPACE)
end

#resetObject

#

reset

#


44
45
46
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 44

def reset
  super()
end

#runObject

#

run (run tag)

#


58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 58

def run
  commandline_arguments?.each {|entry|
    # ===================================================================== #
    # The -s option is used to "generate single HTML that includes all
    # pages".
    # ===================================================================== #
    _ = 'pdftohtml -s '+entry+' '+
        File.basename(entry+'_to_html')+
        '.html'
    esystem _
  }
end