Class: DPTM6::PDF::ResourceObject

Inherits:
Object
  • Object
show all
Defined in:
lib/dptm6/pdf.rb

Instance Attribute Summary collapse

Attributes inherited from Object

#data, #num, #pdf

Instance Method Summary collapse

Methods inherited from Object

#initialize, #move_to, #replace_pagenum, #write

Constructor Details

This class inherits a constructor from DPTM6::PDF::Object

Instance Attribute Details

#x_objectsObject (readonly)

Returns the value of attribute x_objects.



207
208
209
# File 'lib/dptm6/pdf.rb', line 207

def x_objects
  @x_objects
end

Instance Method Details

#to_stringObject



209
210
211
212
213
214
215
# File 'lib/dptm6/pdf.rb', line 209

def to_string
  unless @x_objects.empty?
    ary = @x_objects.collect { |key,obj| "#{key} #{obj.num} 0 R" }
    @data[/\/XObject\s++(<<[^<>]*+>>)/,1] = "<< #{ary.join(' ')} >>"
  end
  super
end