/// <inheritdoc /> /// <summary> /// Create a new <see cref="AcroNonTerminalField"/>. /// </summary> internal AcroNonTerminalField(DictionaryToken dictionary, string fieldType, uint fieldFlags, AcroFieldCommonInformation information, AcroFieldType acroFieldType, IReadOnlyList <AcroFieldBase> children) : base(dictionary, fieldType, fieldFlags, acroFieldType, information, null, null) { Children = children ?? throw new ArgumentNullException(nameof(children)); }
/// <summary> /// Create a new <see cref="AcroFieldBase"/>. /// </summary> /// <param name="dictionary">The dictionary for this field.</param> /// <param name="rawFieldType">The PDF string type of this field.</param> /// <param name="fieldFlags">The flags specifying behaviour for this field.</param> /// <param name="fieldType">The type of this field.</param> /// <param name="information">Additional information for this field.</param> /// <param name="pageNumber">The number of the page this field appears on.</param> /// <param name="bounds">The location of this field on the page.</param> protected AcroFieldBase(DictionaryToken dictionary, string rawFieldType, uint fieldFlags, AcroFieldType fieldType, AcroFieldCommonInformation information, int?pageNumber, PdfRectangle?bounds) { Dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); RawFieldType = rawFieldType ?? throw new ArgumentNullException(nameof(rawFieldType)); FieldFlags = fieldFlags; FieldType = fieldType; Information = information ?? new AcroFieldCommonInformation(null, null, null, null); PageNumber = pageNumber; Bounds = bounds; }