def flags_from_options(opts)
      flags = 0

      flags |= 1<<12 if opts[:multiline]
      flags |= 1<<13 if opts[:password]

      if opts[:file_select]
        min_version 1.4
        flags |= 1<<20
      end

      if opts[:do_not_spell_check]
        min_version 1.4
        flags |= 1<<22
      end

      if opts[:do_not_scroll]
        min_version 1.4
        flags |= 1<<23
      end

      flags
    end
def flags_from_options(opts)
      flags = 0

      flags |= 1<<12 if opts[:multiline]
      flags |= 1<<13 if opts[:password]

      if opts[:file_select]
        min_version 1.4
        flags |= 1<<20
      end

      if opts[:do_not_spell_check]
        min_version 1.4
        flags |= 1<<22
      end

      if opts[:do_not_scroll]
        min_version 1.4
        flags |= 1<<23
      end

      flags
    end
Returns the integer value for the /Ff (flags) entry in the field
 dictionary, based on the options provided.