Class: PDF::Inspector::XObject

Inherits:
PDF::Inspector show all
Defined in:
lib/pdf/inspector/xobject.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PDF::Inspector

analyze, analyze_file, parse

Constructor Details

#initializeXObject

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_xobjectsObject

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_streamsObject

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