lib/origami/acroform.rb in origami-2.0.0 vs lib/origami/acroform.rb in origami-2.0.1
- old
+ new
@@ -24,11 +24,11 @@
#
# Returns true if the document contains an acrobat form.
#
def form?
- (not self.Catalog.nil?) and self.Catalog.has_key? :AcroForm
+ self.Catalog.key? :AcroForm
end
#
# Creates a new AcroForm with specified fields.
#
@@ -99,11 +99,11 @@
#
# Flags relative to signature fields.
#
module SigFlags
- SIGNATURESEXIST = 1 << 0
- APPENDONLY = 1 << 1
+ SIGNATURES_EXIST = 1 << 0
+ APPEND_ONLY = 1 << 1
end
field :Fields, :Type => Array, :Required => true, :Default => []
field :NeedAppearances, :Type => Boolean, :Default => false
field :SigFlags, :Type => Integer, :Default => 0