📄 optionalcontentusage.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;
namespace AnotherPDFLib
{
/// <summary>
/// An optional content group's usage dictionary contains information describing
/// the nature of the content controlled by the group.
/// </summary>
public partial class OptionalContentUsage : PdfDictionary
{
/// <summary>
/// A dictionary used by the creating application to store application-specific
/// data associated with this optional content group.
/// </summary>
public PdfDictionary CreatorInfo
{
get
{
return this["CreatorInfo"] as PdfDictionary;
}
set
{
this["CreatorInfo"] = value;
}
}
/// <summary>
/// A dictionary specifying the language of the content controlled by this
/// optional content group.
/// </summary>
public PdfDictionary Language
{
get
{
return this["Language"] as PdfDictionary;
}
set
{
this["Language"] = value;
}
}
/// <summary>
/// A dictionary containing one entry, ExportState, a name whose value
/// may be ON or OFF. This value indicates the recommended state for content in this
/// group when the document (or part of it) is saved by a viewer application to a format
/// that does not support optional content (for example, an earlier version of
/// PDF or a raster image format).
/// </summary>
public ExportState Export
{
get
{
return this["Export"] as ExportState;
}
set
{
this["Export"] = value;
}
}
/// <summary>
/// A dictionary specifying a range of magnifications at which the content
/// in this optional content group is best viewed.
/// </summary>
public PdfDictionary Zoom
{
get
{
return this["Zoom"] as PdfDictionary;
}
set
{
this["Zoom"] = value;
}
}
/// <summary>
/// A dictionary specifying that the content in this group is intended for
/// use in printing.
/// </summary>
public PrintState Print
{
get
{
return this["Print"] as PrintState;
}
set
{
this["Print"] = value;
}
}
/// <summary>
/// A dictionary that has a single entry, ViewState, a name that may have a
/// value of ON or OFF, indicating that the group should be set to that state when the
/// document is opened in a viewer application.
/// </summary>
public ViewState View
{
get
{
return this["View"] as ViewState;
}
set
{
this["View"] = value;
}
}
/// <summary>
/// A dictionary specifying one or more users for whom this optional content
/// group is primarily intended.
/// </summary>
public PdfDictionary User
{
get
{
return this["User"] as PdfDictionary;
}
set
{
this["User"] = value;
}
}
/// <summary>
/// A dictionary declaring that the group contains a pagination artifact.
/// </summary>
public PdfDictionary PageElement
{
get
{
return this["PageElement"] as PdfDictionary;
}
set
{
this["PageElement"] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -