📄 pdfresource.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;
namespace AnotherPDFLib
{
/// <summary>
/// Each key in a resource dictionary is the name of a resource type
/// </summary>
public partial class PdfResource : PdfDictionary
{
/// <summary>
/// A dictionary that maps resource names to graphics state parameter dictionaries
/// </summary>
public PdfDictionary ExtGState
{
get
{
PdfDictionary extgstate = this["ExtGState"] as PdfDictionary;
if (extgstate == null)
{
extgstate = new PdfDictionary();
this["ExtGState"] = extgstate;
}
return extgstate;
}
set
{
this["ExtGState"] = value;
}
}
/// <summary>
/// A dictionary that maps each resource name to either the name of a
/// device-dependent color space or an array describing a color space
/// </summary>
public PdfDictionary ColorSpace
{
get
{
return this["ColorSpace"] as PdfDictionary;
}
set
{
this["ColorSpace"] = value;
}
}
/// <summary>
/// A dictionary that maps resource names to pattern objects
/// </summary>
public PdfDictionary Pattern
{
get
{
return this["Pattern"] as PdfDictionary;
}
set
{
this["Pattern"] = value;
}
}
/// <summary>
/// A dictionary that maps resource names to shading dictionaries
/// </summary>
public PdfDictionary Shading
{
get
{
return this["Shading"] as PdfDictionary;
}
set
{
this["Shading"] = value;
}
}
/// <summary>
/// A dictionary that maps resource names to external objects
/// </summary>
public PdfDictionary XObject
{
get
{
PdfDictionary xobject = this["XObject"] as PdfDictionary;
if (xobject == null)
{
xobject = new PdfDictionary();
this["XObject"] = xobject;
}
return xobject;
}
set
{
this["XObject"] = value;
}
}
/// <summary>
/// A dictionary that maps resource names to font dictionaries
/// </summary>
public PdfDictionary Font
{
get
{
PdfDictionary font = this["Font"] as PdfDictionary;
if (font == null)
{
font = new PdfDictionary();
this["Font"] = font;
}
return font;
}
set
{
this["Font"] = value;
}
}
/// <summary>
/// An array of predefined procedure set names
/// </summary>
public PdfArray ProcSet
{
get
{
return this["ProcSet"] as PdfArray;
}
set
{
this["ProcSet"] = value;
}
}
/// <summary>
/// A dictionary that maps resource names to property list dictionaries for marked content
/// </summary>
public PdfDictionary Properties
{
get
{
return this["Properties"] as PdfDictionary;
}
set
{
this["Properties"] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -