class HexaPDF::Document::Images

def each(&block)

mask are not.
Note that only real images are yielded which means, for example, that images used as soft

Iterates over all images in the PDF document.

images.each -> Enumerator
images.each {|image| block } -> images
:call-seq:
def each(&block)
  images = @document.each.select do |obj|
    next unless obj.kind_of?(HexaPDF::Dictionary)
    obj[:Subtype] == :Image && !obj[:ImageMask]
  end
  masks = images.each_with_object([]) do |image, temp|
    temp << image[:Mask] if image[:Mask].kind_of?(Stream)
    temp << image[:SMask] if image[:SMask].kind_of?(Stream)
  end
  (images - masks).each(&block)
end