Class: PDF::Inspector::XObject
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::XObject
- Defined in:
- lib/pdf/inspector/xobject.rb
Instance Attribute Summary collapse
-
#page_xobjects ⇒ Object
Returns the value of attribute page_xobjects.
-
#xobject_streams ⇒ Object
Returns the value of attribute xobject_streams.
Instance Method Summary collapse
-
#initialize ⇒ XObject
constructor
A new instance of XObject.
- #page=(page) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ XObject
Returns a new instance of XObject.
6 7 8 9 |
# File 'lib/pdf/inspector/xobject.rb', line 6 def initialize @page_xobjects = [] @xobject_streams = {} end |
Instance Attribute Details
#page_xobjects ⇒ Object
Returns the value of attribute page_xobjects.
4 5 6 |
# File 'lib/pdf/inspector/xobject.rb', line 4 def page_xobjects @page_xobjects end |
#xobject_streams ⇒ Object
Returns the value of attribute xobject_streams.
4 5 6 |
# File 'lib/pdf/inspector/xobject.rb', line 4 def xobject_streams @xobject_streams end |
Instance Method Details
#page=(page) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/pdf/inspector/xobject.rb', line 11 def page=(page) @page_xobjects << page.xobjects page.xobjects.each do |label, stream| @xobject_streams[label] = stream end end |