class PDF::Inspector::ExtGState

Attributes

extgstates[RW]

Public Class Methods

new() click to toggle source
# File lib/pdf/inspector/extgstate.rb, line 6
def initialize
  @extgstates = []
end

Public Instance Methods

page=(page) click to toggle source
# File lib/pdf/inspector/extgstate.rb, line 10
def page=(page)
  page.graphic_states.each do |label, stream|
    @extgstates << {
                    :opacity => stream[:ca],
                    :stroke_opacity => stream[:CA],
                    :soft_mask => stream[:SMask]
                    }
  end
end