Method: Docsplit::TextExtractor#extract_from_pdf
- Defined in:
- lib/docsplit/text_extractor.rb
#extract_from_pdf(pdf, pages) ⇒ Object
Extract a page range worth of text from a PDF, directly.
51 52 53 54 |
# File 'lib/docsplit/text_extractor.rb', line 51 def extract_from_pdf(pdf, pages) return extract_full(pdf) unless pages pages.each { |page| extract_page(pdf, page) } end |