Class: Origami::Signature::BuildProperties

Inherits:
Dictionary
  • Object
show all
Includes:
Origami::StandardObject
Defined in:
lib/origami/signature.rb

Constant Summary

Constants included from Origami::StandardObject

Origami::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

Instance Method Summary collapse

Methods included from Origami::StandardObject

included, #version_required

Methods inherited from Dictionary

#[], #[]=, add_type_signature, #cast_to, #copy, #delete, guess_type, hint_type, #key?, #map!, #merge, parse, #to_h, #to_obfuscated_str, #to_s

Methods included from FieldAccessor

#method_missing, #respond_to_missing?

Methods included from Object

#<=>, #cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #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

#initialize(hash = {}, parser = nil) ⇒ BuildProperties

Returns a new instance of BuildProperties.


428
429
430
431
432
# File 'lib/origami/signature.rb', line 428

def initialize(hash = {}, parser = nil)
    set_indirect(false)

    super(hash, parser)
end

Dynamic Method Handling

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

Instance Method Details

#pre_buildObject

:nodoc:


434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# File 'lib/origami/signature.rb', line 434

def pre_build #:nodoc:
    self.Filter ||= BuildData.new
    self.Filter.Name ||= :"Adobe.PPKLite"
    self.Filter.R ||= 0x20020
    self.Filter.V ||= 2
    self.Filter.Date ||= Time.now.to_s

    self.PubSec ||= BuildData.new
    self.PubSec.NonEFontNoWarn ||= true
    self.PubSec.Date ||= Time.now.to_s
    self.PubSec.R ||= 0x20021

    self.App ||= AppData.new
    self.App.Name ||= :Reader
    self.App.REx = "11.0.8"
    self.App.TrustedMode ||= true
    self.App.OS ||= [ :Win ]
    self.App.R ||= 0xb0008

    super
end