Class: PDFToHTMLR::PdfFilePath
Overview
Handle a string-based local path as input, extends PdfFile
Instance Attribute Summary
Attributes inherited from PdfFile
#format, #owner_pwd, #path, #target, #user_pwd
Instance Method Summary collapse
-
#initialize(input_path, target_path = nil, user_pwd = nil, owner_pwd = nil) ⇒ PdfFilePath
constructor
A new instance of PdfFilePath.
Methods inherited from PdfFile
#convert, #convert_to_document, #convert_to_xml, #convert_to_xml_document
Constructor Details
#initialize(input_path, target_path = nil, user_pwd = nil, owner_pwd = nil) ⇒ PdfFilePath
Returns a new instance of PdfFilePath.
82 83 84 85 86 87 88 89 90 |
# File 'lib/pdftohtmlr.rb', line 82 def initialize(input_path, target_path=nil, user_pwd=nil, owner_pwd=nil) # check to make sure file is legit if (!File.exist?(input_path)) raise PDFToHTMLRError, "invalid file path" end super(input_path, target_path, user_pwd, owner_pwd) end |