Class: Jpdfunite::PdfFile

Inherits:
Section show all
Defined in:
lib/jpdfunite.rb

Instance Attribute Summary collapse

Attributes inherited from Outline

#submarks, #title

Instance Method Summary collapse

Methods inherited from Outline

#add_mark, #pdfmarks

Constructor Details

#initialize(path, title = File.basename(path, ".pdf")) ⇒ PdfFile



89
90
91
92
93
# File 'lib/jpdfunite.rb', line 89

def initialize(path, title = File.basename(path, ".pdf"))
  @path = path.shellescape
  super(title)
  get_pages
end

Instance Attribute Details

#pagesObject (readonly)

Returns the value of attribute pages.



87
88
89
# File 'lib/jpdfunite.rb', line 87

def pages
  @pages
end

#pathObject (readonly)

Returns the value of attribute path.



87
88
89
# File 'lib/jpdfunite.rb', line 87

def path
  @path
end