Module: Pdf::Reader::ExtractImages

Defined in:
lib/pdf/reader/extract_images/version.rb,
lib/pdf/reader/extract_images/extractor.rb,
lib/pdf/reader/extract_images/tiff.rb,
lib/pdf/reader/extract_images/raw.rb,
lib/pdf/reader/extract_images/jpg.rb,
lib/pdf-reader-extract-images.rb

Defined Under Namespace

Classes: Extractor, Jpg, Raw, Tiff

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.extract_all(pdf_reader, limit: Float::INFINITY) ⇒ Object



12
13
14
# File 'lib/pdf-reader-extract-images.rb', line 12

def self.extract_all(pdf_reader, limit: Float::INFINITY)
  pdf_reader.pages.flat_map { |page| Extractor.new(limit).page(page) }.compact
end

.extract_from_pdf_page(page, limit: Float::INFINITY) ⇒ Object



8
9
10
# File 'lib/pdf-reader-extract-images.rb', line 8

def self.extract_from_pdf_page(page, limit: Float::INFINITY)
  Extractor(limit).new.page(page)
end