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.
- #page=(page) ⇒ 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
#page=(page) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# 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], blend_mode: stream[:BM] } end end |