Module | Origami::Field |
In: |
sources/parser/acroform.rb
|
T | = | "undef#{::Array.new(5) {(0x30 + rand(10)).chr}.join}" |
K | = | action |
F | = | action |
V | = | action |
C | = | action |
# File sources/parser/acroform.rb, line 123 123: def self.included(receiver) 124: 125: receiver.field :FT, :Type => Name, :Default => Type::TEXT, :Required => true 126: receiver.field :Parent, :Type => Dictionary 127: receiver.field :Kids, :Type => Array 128: receiver.field :T, :Type => String 129: receiver.field :TU, :Type => String, :Version => "1.3" 130: receiver.field :TM, :Type => String, :Version => "1.3" 131: receiver.field :Ff, :Type => Integer, :Default => 0 132: receiver.field :V, :Type => Object 133: receiver.field :DV, :Type => Object 134: receiver.field :AA, :Type => Dictionary, :Version => "1.2" 135: 136: # Variable text fields 137: receiver.field :DA, :Type => String, :Default => "/F1 10 Tf 0 g", :Required => true 138: receiver.field :Q, :Type => Integer, :Default => TextAlign::LEFT 139: receiver.field :DS, :Type => ByteString, :Version => "1.5" 140: receiver.field :RV, :Type => [ String, Stream ], :Version => "1.5" 141: 142: end
# File sources/parser/acroform.rb, line 186 186: def onCalculate(action) 187: 188: unless action.is_a?(Action::Action) 189: raise TypeError, "An Action object must be passed." 190: end 191: 192: self.AA ||= AdditionalActions.new 193: self.AA.C = action 194: 195: end
# File sources/parser/acroform.rb, line 164 164: def onFormat(action) 165: 166: unless action.is_a?(Action::Action) 167: raise TypeError, "An Action object must be passed." 168: end 169: 170: self.AA ||= AdditionalActions.new 171: self.AA.F = action 172: 173: end
# File sources/parser/acroform.rb, line 153 153: def onKeyStroke(action) 154: 155: unless action.is_a?(Action::Action) 156: raise TypeError, "An Action object must be passed." 157: end 158: 159: self.AA ||= AdditionalActions.new 160: self.AA.K = action 161: 162: end
# File sources/parser/acroform.rb, line 175 175: def onValidate(action) 176: 177: unless action.is_a?(Action::Action) 178: raise TypeError, "An Action object must be passed." 179: end 180: 181: self.AA ||= AdditionalActions.new 182: self.AA.V = action 183: 184: end