⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 embeddedfileparameter.cs

📁 PDF文件格式解析库源代码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;

namespace AnotherPDFLib
{
	public partial class EmbeddedFileParameter : PdfDictionary
	{
		/// <summary>
		/// The size of the embedded file, in bytes.
		/// </summary>
		public int Size
		{
			get
			{
				PdfInteger size = this["Size"] as PdfInteger;
				if (size != null)
				{
					return size.Value;
				}
				return 0;
			}
			set
			{
				this["Size"] = new PdfInteger(value);
			}
		}

		/// <summary>
		/// The date and time when the embedded file was created.
		/// </summary>
		public DateTime CreationDate
		{
			get
			{
				PdfDateTime creationdate = this["CreationDate"] as PdfDateTime;
				if (creationdate != null)
				{
					return creationdate.Value;
				}
				return DateTime.MinValue;
			}
			set
			{
				this["CreationDate"] = new PdfDateTime(value);
			}
		}

		/// <summary>
		/// The date and time when the embedded file was last modified.
		/// </summary>
		public DateTime ModDate
		{
			get
			{
				PdfDateTime moddate = this["ModDate"] as PdfDateTime;
				if (moddate != null)
				{
					return moddate.Value;
				}
				return DateTime.MinValue;
			}
			set
			{
				this["ModDate"] = new PdfDateTime(value);
			}
		}

		/// <summary>
		/// A 16-byte string that is the checksum of the bytes of the uncompressed embedded file. The checksum is calculated by applying the standard MD5 message-digest algorithm.
		/// </summary>
		public PdfHexString CheckSum
		{
			get
			{
				return this["CheckSum"] as PdfHexString;
			}
			set
			{
				this["CheckSum"] = value;
			}
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -