Class: PDF::Inspector::ExtGState
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::ExtGState
- Defined in:
- lib/pdf/inspector/extgstate.rb
Instance Attribute Summary collapse
-
#extgstates ⇒ Object
Returns the value of attribute extgstates.
Instance Method Summary collapse
-
#initialize ⇒ ExtGState
constructor
A new instance of ExtGState.
- #resource_extgstate(*params) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ ExtGState
Returns a new instance of ExtGState.
6 7 8 |
# File 'lib/pdf/inspector/extgstate.rb', line 6 def initialize @extgstates = [] end |
Instance Attribute Details
#extgstates ⇒ Object
Returns the value of attribute extgstates.
4 5 6 |
# File 'lib/pdf/inspector/extgstate.rb', line 4 def extgstates @extgstates end |
Instance Method Details
#resource_extgstate(*params) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pdf/inspector/extgstate.rb', line 10 def resource_extgstate(*params) @extgstates << { :opacity => params[1][:ca], :stroke_opacity => params[1][:CA] } end |