Class: Origami::Graphics::FormXObject

Inherits:
ContentStream show all
Includes:
XObject, ResourcesHolder
Defined in:
lib/origami/graphics/xobject.rb

Direct Known Subclasses

Annotation::AppearanceStream

Defined Under Namespace

Classes: Group, Reference

Constant Summary

Constants inherited from ContentStream

ContentStream::DEFAULT_DASHPATTERN, ContentStream::DEFAULT_FILL_COLOR, ContentStream::DEFAULT_FONT, ContentStream::DEFAULT_LEADING, ContentStream::DEFAULT_LINECAP, ContentStream::DEFAULT_LINEJOIN, ContentStream::DEFAULT_LINEWIDTH, ContentStream::DEFAULT_SIZE, ContentStream::DEFAULT_STROKE_COLOR

Constants inherited from Stream

Stream::TOKENS

Constants included from StandardObject

StandardObject::DEFAULT_ATTRIBUTES

Constants included from Object

Object::TOKENS

Instance Attribute Summary

Attributes inherited from ContentStream

#canvas

Attributes inherited from Stream

#dictionary

Attributes included from Object

#file_offset, #generation, #no, #objstm_offset, #parent

Instance Method Summary collapse

Methods included from ResourcesHolder

#add_colorspace, #add_extgstate, #add_font, #add_pattern, #add_properties, #add_resource, #add_shading, #add_xobject, #colorspaces, #each_colorspace, #each_extgstate, #each_font, #each_pattern, #each_property, #each_resource, #each_shading, #each_xobject, #extgstates, #fonts, #patterns, #properties, #resources, #shadings, #xobjects

Methods included from XObject

included

Methods inherited from ContentStream

#draw_image, #draw_line, #draw_polygon, #draw_rectangle, #initialize, #instructions, #paint_shading, #render, #set_dash_pattern, #set_fill_color, #set_line_cap, #set_line_join, #set_line_width, #set_stroke_color, #set_text_char_spacing, #set_text_font, #set_text_leading, #set_text_pos, #set_text_rendering, #set_text_rise, #set_text_scale, #set_text_word_spacing, #write

Methods inherited from Stream

#[], #[]=, add_type_signature, #cast_to, #data, #data=, #decode!, #each_filter, #each_key, #encode!, #encoded_data, #encoded_data=, #filters, guess_type, #initialize, #key?, parse, #post_build, #set_predictor, #to_obfuscated_str, #to_s, #value

Methods included from FieldAccessor

#method_missing, #respond_to_missing?

Methods included from StandardObject

included, #version_required

Methods included from Object

#<=>, #cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #initialize, #logicalize, #logicalize!, #native_type, parse, #post_build, #reference, #set_document, #set_indirect, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #version_required, #xrefs

Constructor Details

This class inherits a constructor from Origami::ContentStream

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Origami::FieldAccessor

Instance Method Details

#pre_buildObject



624
625
626
627
628
# File 'lib/origami/graphics/xobject.rb', line 624

def pre_build
    self.Resources = Resources.new.pre_build unless self.key?(:Resources)

    super
end