Class: Origami::Signature::BuildProperties

Inherits:
Dictionary 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

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

Methods inherited from Dictionary

#[], #[]=, #delete, #has_key?, #map!, #merge, #method_missing, parse, #real_type, #to_obfuscated_str, #to_s

Methods included from Object

#<=>, #copy, #indirect_parent, #is_indirect?, parse, #pdf, #pdf_version_required, #post_build, #reference, #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

#initialize(hash = {}) ⇒ BuildProperties

Returns a new instance of BuildProperties.



492
493
494
495
496
# File 'lib/origami/signature.rb', line 492

def initialize(hash = {})
  set_indirect(false)

  super(hash)
end

Dynamic Method Handling

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

Instance Method Details

#pre_buildObject

:nodoc:



498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
# File 'lib/origami/signature.rb', line 498

def pre_build #:nodoc:
  
  self.Filter ||= BuildData.new
  self.Filter.Name ||= Name.new("Adobe.PPKMS")
  self.Filter.R ||= 0x2001D
  self.Filter.Date ||= Time.now.to_s
  
  self.SigQ ||= SigQData.new
  self.SigQ.Preview ||= false
  self.SigQ.R ||= 0x2001D
  
  self.PubSec ||= BuildData.new
  self.PubSec.NonEFontNoWarn ||= false
  self.PubSec.Date ||= Time.now.to_s
  self.PubSec.R ||= 0x2001D
  
  self.App ||= AppData.new
  self.App.TrustedMode ||= false
  self.App.OS ||= [ :Win ]
  self.App.R ||= 0x70000
  self.App.Name ||= Name.new("Exchange-Pro")
  
  super
end