Class: EideticPDF::PdfObjects::PdfXObject

Inherits:
PdfStream show all
Defined in:
lib/epdfo.rb

Overview

images and forms

Direct Known Subclasses

PdfImage

Instance Attribute Summary

Attributes inherited from PdfStream

#stream

Attributes inherited from IndirectObject

#gen, #seq

Instance Method Summary collapse

Methods inherited from PdfStream

#body, #filter=, #length

Methods inherited from PdfDictionaryObject

#body, #dictionary

Methods inherited from IndirectObject

#body, #footer, #header, #reference_object, #reference_string, #to_s

Constructor Details

#initialize(seq, gen, stream = nil) ⇒ PdfXObject

Returns a new instance of PdfXObject.



508
509
510
511
# File 'lib/epdfo.rb', line 508

def initialize(seq, gen, stream=nil)
  super(seq, gen, stream)
  dictionary['Type'] = PdfName.new('XObject')
end