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

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

Methods included from Object

#<=>, #cast_to, #copy, #export, #indirect_parent, #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

Methods inherited from Hash

#to_o

Constructor Details

#initialize(hash = {}) ⇒ BuildProperties

Returns a new instance of BuildProperties.



510
511
512
513
514
# File 'lib/origami/signature.rb', line 510

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:



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'lib/origami/signature.rb', line 516

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