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 included from ObjectCache

#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

#[], #[]=, hint_type, #merge, parse, #to_h, #to_obfuscated_str, #to_s, #transform_values, #transform_values!

Methods included from TypeGuessing

#guess_type

Methods included from FieldAccessor

#method_missing, #respond_to_missing?

Methods included from CompoundObject

#copy, #delete, #include?, #update_values, #update_values!

Methods included from ObjectCache

#rebuild_caches

Methods included from Object

#cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #logicalize, #logicalize!, #native_type, #numbered?, 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.



507
508
509
510
511
# File 'lib/origami/signature.rb', line 507

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:



513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
# File 'lib/origami/signature.rb', line 513

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