class PDF::Inspector::XObject

Attributes

page_xobjects[RW]
xobject_streams[RW]

Public Class Methods

new() click to toggle source
# File lib/pdf/inspector/xobject.rb, line 6
def initialize
  @page_xobjects = []
  @xobject_streams = {}
end

Public Instance Methods

begin_page(*params) click to toggle source
# File lib/pdf/inspector/xobject.rb, line 16
def begin_page(*params)
  @page_xobjects << [] 
end
resource_xobject(*params) click to toggle source
# File lib/pdf/inspector/xobject.rb, line 11
def resource_xobject(*params)
  @page_xobjects.last << params.first
  store_streams(params.first, params.last)
end
store_streams(resource_name, stream) click to toggle source
# File lib/pdf/inspector/xobject.rb, line 20
def store_streams(resource_name, stream)
  @xobject_streams[resource_name] = stream
end