📄 pdfacroform.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using AnotherPDFLib.PdfGraphics;
namespace AnotherPDFLib
{
public partial class PdfAcroForm : PdfDictionary
{
/// <summary>
/// An array of references to the document's root fields.
/// </summary>
public PdfArray Fields
{
get
{
return this["Fields"] as PdfArray;
}
set
{
this["Fields"] = value;
}
}
/// <summary>
/// A flag specifying whether to construct appearance streams
/// and appearance dictionaries for all widget annotations in the document.
/// </summary>
public bool NeedAppearances
{
get
{
PdfBoolean needappearances = this["NeedAppearances"] as PdfBoolean;
if (needappearances != null)
{
return needappearances.Value;
}
return false;
}
set
{
this["NeedAppearances"] = new PdfBoolean(value);
}
}
/// <summary>
/// A set of flags specifying various document-level
/// characteristics related to signature fields.
/// </summary>
public int SigFlags
{
get
{
PdfInteger sigflags = this["SigFlags"] as PdfInteger;
if (sigflags != null)
{
return sigflags.Value;
}
return 0;
}
set
{
this["SigFlags"] = new PdfInteger(value);
}
}
/// <summary>
/// An array of indirect references to field dictionaries with calculation actions,
/// defining the calculation order in which their values will be recalculated when the value of any
/// field changes.(Required if any fields in the document have additional-actions dictionaries
/// containing a C entry; PDF 1.3)
/// </summary>
public PdfArray CO
{
get
{
return this["CO"] as PdfArray;
}
set
{
this["CO"] = value;
}
}
/// <summary>
/// A resource dictionary containing default resources
/// (such as fonts, patterns, or color spaces)
/// to be used by form field appearance streams.
/// At a minimum, this dictionary must contain a Font entry specifying the resource name
/// and font dictionary of the default font for displaying text.
/// </summary>
public PdfResource Resource
{
get
{
return this["DR"] as PdfResource;
}
set
{
this["DR"] = value;
}
}
/// <summary>
/// A document-wide default value for the DA attribute of variable text fields.
/// </summary>
public string DA
{
get
{
PdfString da = this["DA"] as PdfString;
if (da != null)
{
return da.Value;
}
return String.Empty;
}
set
{
this["DA"] = new PdfString(value);
}
}
/// <summary>
/// A document-wide default value for the Q attribute of variable text fields.
/// </summary>
public int Q
{
get
{
PdfInteger q = this["Q"] as PdfInteger;
if (q != null)
{
return q.Value;
}
return 0;
}
set
{
this["Q"] = new PdfInteger(value);
}
}
/// <summary>
/// A stream containing an XFA resource,
/// whose format is described by the XML Data Package Specification.
/// </summary>
public PdfStream XfaStream
{
get
{
return this["XFA"] as PdfStream;
}
set
{
this["XFA"] = value;
}
}
/// <summary>
/// XFA entry consisting of an array of packets
/// </summary>
public PdfArray XfaArray
{
get
{
return this["XFA"] as PdfArray;
}
set
{
this["XFA"] = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -