/// <summary>Sets the value of the collection item.</summary>
        /// <param name="d"/>
        public virtual void AddItem(String key, PdfDate d)
        {
            PdfCollectionField field = schema.GetField(key);

            if (field.subType == PdfCollectionField.DATE)
            {
                GetPdfObject().Put(new PdfName(key), d.GetPdfObject());
            }
        }
 /// <summary>The date and time when the trap network was most recently modified.</summary>
 /// <remarks>
 /// The date and time when the trap network was most recently modified.
 /// <para />
 /// This entry is required if /Version (
 /// <see cref="GetVersion()"/>
 /// ) and /AnnotStates (
 /// <see cref="GetAnnotStates()"/>
 /// )
 /// entries are absent; shall be absent if /Version and /AnnotStates entries are present.
 /// </remarks>
 /// <param name="lastModified">
 /// a
 /// <see cref="iText.Kernel.Pdf.PdfDate"/>
 /// wrapper with the specified date.
 /// </param>
 /// <returns>
 /// this
 /// <see cref="PdfTrapNetworkAnnotation"/>
 /// instance.
 /// </returns>
 public virtual iText.Kernel.Pdf.Annot.PdfTrapNetworkAnnotation SetLastModified(PdfDate lastModified)
 {
     return((iText.Kernel.Pdf.Annot.PdfTrapNetworkAnnotation)Put(PdfName.LastModified, lastModified.GetPdfObject
                                                                     ()));
 }
 /// <summary>Sets the /M value.</summary>
 /// <remarks>Sets the /M value. Should only be used if the time of signing is not available in the signature.</remarks>
 /// <param name="date">time of signing</param>
 public virtual void SetDate(PdfDate date)
 {
     Put(PdfName.M, date.GetPdfObject());
 }