Class: PDFium::ImageList
- Inherits:
-
Object
- Object
- PDFium::ImageList
- Includes:
- Enumerable
- Defined in:
- lib/pdfium/image_list.rb
Overview
A list of Image instances for a given Page. Is returned by Page#images Images are lazily loaded upon request.
Instance Method Summary collapse
-
#each(&block) ⇒ Object
Calls block once for each object on the document.
-
#initialize(page) ⇒ ImageList
constructor
Load list for a given page.
Constructor Details
#initialize(page) ⇒ ImageList
Load list for a given page. Not normally called directly, but from Page#images
10 11 12 |
# File 'lib/pdfium/image_list.rb', line 10 def initialize(page) @page=page end |
Instance Method Details
#each(&block) ⇒ Object
Calls block once for each object on the document
15 16 17 |
# File 'lib/pdfium/image_list.rb', line 15 def each(&block) @page.each_image(&block) end |