class HexaPDF::DigitalSignature::Signature::TransformParams
See: PDF2.0 s12.8.2.2, s12.8.2.3, s12.8.2.4
time.
The allowed fields depend on the transform method, so not all fields are available all the
Represents a transform parameters dictionary.
def perform_validation #:nodoc:
def perform_validation #:nodoc: super # We need to perform the checks here since the values are arrays and not single elements if (annots = self[:Annots]) && !(annots = annots.value - FIELD_ANNOTS_ALLOWED_VALUES).empty? yield("Field /Annots contains invalid entries: #{annots.join(', ')}", true) value[:Annots].value -= annots end if (form = self[:Form]) && !(form = form.value - FIELD_FORM_ALLOWED_VALUES).empty? yield("Field /Form contains invalid entries: #{form.join(', ')}", true) value[:Form].value -= form end if (ef = self[:EF]) && !(ef = ef.value - FIELD_EF_ALLOWED_VALUES).empty? yield("Field /EF contains invalid entries: #{ef.join(', ')}", true) value[:EF].value -= ef end end