filespecification.cs

来自「PDF文件格式解析库源代码」· CS 代码 · 共 68 行

CS
68
字号
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;

namespace AnotherPDFLib
{
	public partial class FileSpecification : PdfDictionary
	{
		public FileSpecification() : base("Filespec")
		{
		}

		/// <summary>
		/// The name of the file system to be used to interpret this file specification.
		/// </summary>
		public string FileSystem
		{
			get
			{
				PdfName filesystem = this["FS"] as PdfName;
				if (filesystem != null)
				{
					return filesystem.Value;
				}
				return String.Empty;
			}
			set
			{
				this["FS"] = new PdfName(value);
			}
		}

		/// <summary>
		/// A file specification string or a uniform resource locator.
		/// </summary>
		public string FilePath
		{
			get
			{
				PdfString filepath = this["F"] as PdfString;
				if (filepath != null)
				{
					return filepath.Value;
				}
				return String.Empty;
			}
			set
			{
				this["F"] = new PdfString(value);
			}
		}

		public PdfDictionary EmbeddedFile
		{
			get
			{
				return this["EF"] as PdfDictionary;
			}
			set
			{
				this["EF"] = value;
			}
		}

	}
}

⌨️ 快捷键说明

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