Class: Origami::Action

Inherits:
Dictionary show all
Includes:
StandardObject
Defined in:
lib/origami/actions.rb

Overview

Class representing an action to launch in a PDF.

Defined Under Namespace

Classes: GoTo, GoToE, GoToR, ImportData, JavaScript, Launch, Named, RichMediaExecute, SubmitForm, URI

Constant Summary

Constants included from StandardObject

StandardObject::DEFAULT_ATTRIBUTES

Constants inherited from Dictionary

Dictionary::TOKENS

Constants included from Object

Object::TOKENS

Instance Attribute Summary

Attributes inherited from Dictionary

#names_cache, #strings_cache, #xref_cache

Attributes included from Object

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

Class Method Summary collapse

Methods included from StandardObject

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

Methods inherited from Dictionary

#[], #[]=, add_type_info, #cast_to, #copy, #delete, guess_type, #has_key?, hint_type, #initialize, #map!, #merge, #method_missing, native_type, parse, #to_obfuscated_str, #to_s

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, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs

Methods inherited from Hash

#to_o

Constructor Details

This class inherits a constructor from Origami::Dictionary

Dynamic Method Handling

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

Class Method Details

.GoTo(hash = {}) ⇒ Object



78
79
80
# File 'lib/origami/actions.rb', line 78

def self.GoTo(hash = {})
  Action::GoTo[hash]
end

.GoToE(filename, dest, newwindow = false) ⇒ Object



241
242
243
# File 'lib/origami/actions.rb', line 241

def self.GoToE(filename, dest, newwindow = false)
  Action::GoToE[filename, dest, newwindow]
end

.GoToR(file, dest = Destination::GlobalFit.new(0), newwindow = false) ⇒ Object



200
201
202
# File 'lib/origami/actions.rb', line 200

def self.GoToR(file, dest = Destination::GlobalFit.new(0), newwindow = false)
  Action::GoToR[file, dest, newwindow]
end

.ImportData(file) ⇒ Object



294
295
296
# File 'lib/origami/actions.rb', line 294

def self.ImportData(file)
  Action::ImportData[file]
end

.JavaScript(script) ⇒ Object



123
124
125
# File 'lib/origami/actions.rb', line 123

def self.JavaScript(script)
  Action::JavaScript[script]
end

.Named(type) ⇒ Object



174
175
176
# File 'lib/origami/actions.rb', line 174

def self.Named(type)
  Action::Named[type]
end

.RichMediaExecute(annotation, command, *params) ⇒ Object



319
320
321
# File 'lib/origami/actions.rb', line 319

def self.RichMediaExecute(annotation, command, *params)
  Action::RichMediaExecute[annotation, command, *params]
end

.SubmitForm(url, fields = [], flags = 0) ⇒ Object



278
279
280
# File 'lib/origami/actions.rb', line 278

def self.SubmitForm(url, fields = [], flags = 0)
  Action::SubmitForm[url, fields, flags]
end

.URI(uri, ismap = false) ⇒ Object



102
103
104
# File 'lib/origami/actions.rb', line 102

def self.URI(uri, ismap = false)
  Action::URI[uri, ismap]
end