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

📄 optionalcontentproperties.cs

📁 PDF文档生成解析使用的库,可以用来改写自己的文档格式
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;

namespace AnotherPDFLib
{
	/// <summary>
	/// The optional OCProperties entry in the document catalog holds the optional content properties dictionary, which contains
	/// a list of all the optional content groups in the document, as well as information
	/// about the default and alternate configurations for optional content.
	/// This dictionary is required if the file contains any optional content; if it is missing, a
	/// PDF consumer should ignore any optional content structures in the document.
	/// </summary>
	public partial class OptionalContentProperties : PdfDictionary
	{
		/// <summary>
		/// An array of indirect references to all the optional content groups in
		/// the document, in any order.
		/// Every optional content group must be included in this array.
		/// </summary>
		public PdfArray OCGs
		{
			get
			{
				PdfArray ocgs = this["OCGs"] as PdfArray;
				if (ocgs == null)
				{
					ocgs = new PdfArray();
					this["OCGs"] = ocgs;
				}
				return ocgs;
			}
			set
			{
				this["OCGs"] = value;
			}
		}

		/// <summary>
		/// An array of alternate optional content configuration dictionaries for PDF processing applications or features.
		/// </summary>
		public PdfArray Configs
		{
			get
			{
				PdfArray configs = this["Configs"] as PdfArray;
				if (configs == null)
				{
					configs = new PdfArray();
					this["Configs"] = configs;
				}
				return configs;
			}
			set
			{
				this["Configs"] = value;
			}
		}

		/// <summary>
		/// The default viewing optional content configuration dictionary.
		/// </summary>
		public OptionalContentConfiguration DefaultConfig
		{
			get
			{
				OptionalContentConfiguration defaultconfig = this["D"] as OptionalContentConfiguration;
				if (defaultconfig == null)
				{
					defaultconfig = new OptionalContentConfiguration();
					this["D"] = defaultconfig;
				}
				return defaultconfig;
			}
			set
			{
				this["D"] = value;
			}
		}

	}
}

⌨️ 快捷键说明

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