Class: DPTM6::PDF::ResourceObject
Instance Attribute Summary collapse
-
#x_objects ⇒ Object
readonly
Returns the value of attribute x_objects.
Attributes inherited from Object
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_objects ⇒ Object (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_string ⇒ Object
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 |