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

📄 pdftrailer.cs

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

namespace AnotherPDFLib
{
	public partial class PdfTrailer : PdfDictionary
	{
		/// <summary>
		/// The catalog dictionary for the PDF document contained in the file.
		/// </summary>
		public PdfCatalog Root
		{
			get
			{
				return this["Root"] as PdfCatalog;
			}
			set
			{
				this["Root"] = value;
			}
		}

		/// <summary>
		/// The total number of entries in the file's cross-reference table,
		/// as defined by the combination of the original section and all update sections.
		/// Equivalently, this value is 1 greater than the highest object number used in the file.
		/// </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>
		/// An array of two strings constituting a file identifier for the file.
		/// Although this entry is optional,
		/// its absence might prevent the file from functioning in some workflows
		/// that depend on files being uniquely identified.
		/// </summary>
		public FileIdentifier FileID
		{
			get
			{
				return this["ID"] as FileIdentifier;
			}
			set
			{
				this["ID"] = value;
			}
		}

		public PdfEncryption Encrypt
		{
			get
			{
				return this["Encrypt"] as PdfEncryption;
			}
			set
			{
				this["Encrypt"] = value;
			}
		}

		/// <summary>
		/// The byte offset from the beginning of the file to the beginning of the
		/// previous cross-reference section.
		/// (Present only if the file has more than one cross-reference section)
		/// </summary>
		public int PreviousXref
		{
			get
			{
				PdfInteger previousxref = this["Prev"] as PdfInteger;
				if (previousxref != null)
				{
					return previousxref.Value;
				}
				return 0;
			}
			set
			{
				this["Prev"] = new PdfInteger(value);
			}
		}

		/// <summary>
		/// Gets or set document's information dictionary.
		/// </summary>
		public PdfDocumentInfo DocumentInfo
		{
			get
			{
				return this["Info"] as PdfDocumentInfo;
			}
			set
			{
				this["Info"] = value;
			}
		}

	}
}

⌨️ 快捷键说明

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