Class: PdfParadise::PdfToHtml
- Inherits:
-
Base
- Object
- Base
- PdfParadise::PdfToHtml
show all
- Defined in:
- lib/pdf_paradise/utility_scripts/pdf_to_html.rb
Overview
Constant Summary
collapse
- NAMESPACE =
inspect
Instance Method Summary
collapse
-
#initialize(i = ARGV, run_already = true) ⇒ PdfToHtml
constructor
# === initialize ========================================================================= #.
-
#opnn ⇒ Object
# === opnn ========================================================================= #.
-
#reset ⇒ Object
# === reset ========================================================================= #.
-
#run ⇒ Object
# === run (run tag) ========================================================================= #.
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
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
#opnn ⇒ Object
51
52
53
|
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 51
def opnn
super(NAMESPACE)
end
|
#reset ⇒ Object
44
45
46
|
# File 'lib/pdf_paradise/utility_scripts/pdf_to_html.rb', line 44
def reset
super()
end
|
#run ⇒ Object
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|
_ = 'pdftohtml -s '+entry+' '+
File.basename(entry+'_to_html')+
'.html'
esystem _
}
end
|