Method: PDF#extract_sections
- Defined in:
- lib/pdf.rb
#extract_sections(filename) ⇒ Object
extract_sections
parameters:
+filename+ pdf
70 71 72 73 74 75 76 77 78 |
# File 'lib/pdf.rb', line 70 def extract_sections(filename) sections = [] pdf = Poppler::Document.new(filename) indexer = Poppler::IndexIter.new(pdf) walk_index(indexer,sections) sections rescue sections end |