Class: Origami::Graphics::FormXObject

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

Direct Known Subclasses

Annotation::AppearanceStream

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, #instructions

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, #extgstates, #fonts, #ls_resources, #patterns, #properties, #resources, #shadings, #xobjects

Methods included from XObject

included

Methods inherited from ContentStream

#draw_image, #draw_line, #draw_polygon, #draw_rectangle, #initialize, #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_info, #cast_to, #data, #data=, #decode!, #each_key, #encode!, guess_type, #initialize, #method_missing, native_type, parse, #post_build, #rawdata, #rawdata=, #set_predictor, #to_obfuscated_str, #to_s, #value

Methods included from StandardObject

#do_type_check, #has_field?, included, #pdf_version_required, #set_default_value, #set_default_values

Methods included from Object

#<=>, #cast_to, #copy, #export, #indirect_parent, #initialize, #is_indirect?, #logicalize, #logicalize!, #native_type, native_type, parse, #pdf, #pdf_version_required, #post_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #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::Stream

Instance Method Details

#pre_buildObject



595
596
597
598
599
# File 'lib/origami/graphics/xobject.rb', line 595

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

  super
end