Class: EideticPDF::PdfObjects::PdfResources

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

Overview

defines resources used by a page or collection of pages

Instance Attribute Summary

Attributes inherited from IndirectObject

#gen, #seq

Instance Method Summary collapse

Methods inherited from PdfDictionaryObject

#body, #dictionary, #initialize

Methods inherited from IndirectObject

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

Constructor Details

This class inherits a constructor from EideticPDF::PdfObjects::PdfDictionaryObject

Instance Method Details

#fontsObject



700
701
702
703
# File 'lib/epdfo.rb', line 700

def fonts
  @fonts ||= PdfDictionary.new
  dictionary['Font'] ||= @fonts
end

#proc_set=(pdf_object) ⇒ Object



695
696
697
698
# File 'lib/epdfo.rb', line 695

def proc_set=(pdf_object)
  # pdf_object: PdfArray or IndirectObjectRef
  dictionary['ProcSet'] = pdf_object
end

#x_objectsObject



705
706
707
708
# File 'lib/epdfo.rb', line 705

def x_objects
  @x_objects ||= PdfDictionary.new
  dictionary['XObject'] ||= @x_objects
end