Skip to main content
Skip table of contents

AcroFields (1)

AcroFields Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.AcroFields[[AcroFields]]
  end

Members

Properties

Public properties
TypeNameMethods
IDictionary<string, TextField>FieldCacheget, set
IDictionary<string, Item>Fieldsget
boolGenerateAppearancesget, set
List<BaseFont>SubstitutionFontsget, set
intTotalRevisionsget
XfaFormXfaget

Methods

Public Static methods
ReturnsName
object``[]SplitDAelements(string da)
Internal methods
Public methods
ReturnsName
voidAddSubstitutionFont(BaseFont font)
boolClearSignatureField(string name)
voidDecodeGenericDictionary(PdfDictionary merged, BaseField tx)
boolDoesSignatureFieldExist(string name)
voidExportAsFdf(FdfWriter writer)
StreamExtractRevision(string field)
string``[]GetAppearanceStates(string fieldName)
List<string>GetBlankSignatureNames()
stringGetField(string name)
ItemGetFieldItem(string name)
IList<FieldPosition>GetFieldPositions(string name)
stringGetFieldRichValue(string name)
intGetFieldType(string fieldName)
string``[]GetListOptionDisplay(string fieldName)
string``[]GetListOptionExport(string fieldName)
string``[]GetListSelection(string name)
PushbuttonFieldGetNewPushbuttonFromField(...)
PdfIndirectReferenceGetNormalAppearance(string name)
intGetRevision(string field)
PdfDictionaryGetSignatureDictionary(string name)
List<string>GetSignatureNames()
stringGetTranslatedFieldName(string name)
voidMergeXfaData(XmlNode n)
boolRegenerateField(string name)
boolRemoveField(...)
boolRemoveFieldsFromPage(int page)
voidRemoveXfa()
boolRenameField(string oldName, string newName)
boolReplacePushbuttonField(...)
voidSetExtraMargin(float extraMarginLeft, float extraMarginTop)
boolSetField(...)
boolSetFieldProperty(...)
boolSetFieldRichValue(string name, string richValue)
voidSetFields(...)
boolSetListOption(string fieldName, string``[] exportValues, string``[] displayValues)
boolSetListSelection(string name, string``[] value)
boolSignatureCoversWholeDocument(string name)
PdfPKCS7VerifySignature(string name)

Details

Nested types

Classes
  • Item
  • FieldPosition

Constructors

AcroFields

Source code

internal AcroFields(PdfReader reader, PdfWriter writer)
Arguments
TypeNameDescription
PdfReaderreader
PdfWriterwriter

Methods

SplitDAelements

Source code

public static object SplitDAelements(string da)
Arguments
TypeNameDescription
stringda
Fill

Source code

internal void Fill()
GetAppearanceStates

Source code

public virtual string GetAppearanceStates(string fieldName)
Arguments
TypeNameDescription
stringfieldName
GetListOptionExport

Source code

public virtual string GetListOptionExport(string fieldName)
Arguments
TypeNameDescription
stringfieldName
GetListOptionDisplay

Source code

public virtual string GetListOptionDisplay(string fieldName)
Arguments
TypeNameDescription
stringfieldName
SetListOption

Source code

public virtual bool SetListOption(string fieldName, string[] exportValues, string[] displayValues)
Arguments
TypeNameDescription
stringfieldName
string``[]exportValues
string``[]displayValues
GetFieldType

Source code

public virtual int GetFieldType(string fieldName)
Arguments
TypeNameDescription
stringfieldName
ExportAsFdf

Source code

public virtual void ExportAsFdf(FdfWriter writer)
Arguments
TypeNameDescription
FdfWriterwriter
RenameField

Source code

public virtual bool RenameField(string oldName, string newName)
Arguments
TypeNameDescription
stringoldName
stringnewName
DecodeGenericDictionary

Source code

public virtual void DecodeGenericDictionary(PdfDictionary merged, BaseField tx)
Arguments
TypeNameDescription
PdfDictionarymerged
BaseFieldtx
GetAppearance [1/2]

Source code

internal PdfAppearance GetAppearance(PdfDictionary merged, string[] values, string fieldName)
Arguments
TypeNameDescription
PdfDictionarymerged
string``[]values
stringfieldName
GetAppearance [2/2]

Source code

internal PdfAppearance GetAppearance(PdfDictionary merged, string text, string fieldName)
Arguments
TypeNameDescription
PdfDictionarymerged
stringtext
stringfieldName
GetMKColor

Source code

internal BaseColor GetMKColor(PdfArray ar)
Arguments
TypeNameDescription
PdfArrayar
GetFieldRichValue

Source code

public virtual string GetFieldRichValue(string name)
Arguments
TypeNameDescription
stringname
GetField

Source code

public virtual string GetField(string name)
Arguments
TypeNameDescription
stringname
GetListSelection

Source code

public virtual string GetListSelection(string name)
Arguments
TypeNameDescription
stringname
SetFieldProperty [1/2]

Source code

public virtual bool SetFieldProperty(string field, string name, object value, int[] inst)
Arguments
TypeNameDescription
stringfield
stringname
objectvalue
int``[]inst
SetFieldProperty [2/2]

Source code

public virtual bool SetFieldProperty(string field, string name, int value, int[] inst)
Arguments
TypeNameDescription
stringfield
stringname
intvalue
int``[]inst
MergeXfaData

Source code

public virtual void MergeXfaData(XmlNode n)
Arguments
TypeNameDescription
XmlNoden
SetFields [1/2]

Source code

public virtual void SetFields(FdfReader fdf)
Arguments
TypeNameDescription
FdfReaderfdf
SetFields [2/2]

Source code

public virtual void SetFields(XfdfReader xfdf)
Arguments
TypeNameDescription
XfdfReaderxfdf
RegenerateField

Source code

public virtual bool RegenerateField(string name)
Arguments
TypeNameDescription
stringname
SetField [1/4]

Source code

public virtual bool SetField(string name, string value)
Arguments
TypeNameDescription
stringname
stringvalue
SetField [2/4]

Source code

public virtual bool SetField(string name, string value, bool saveAppearance)
Arguments
TypeNameDescription
stringname
stringvalue
boolsaveAppearance
SetFieldRichValue

Source code

public virtual bool SetFieldRichValue(string name, string richValue)
Arguments
TypeNameDescription
stringname
stringrichValue
SetField [3/4]

Source code

public virtual bool SetField(string name, string value, string display)
Arguments
TypeNameDescription
stringname
stringvalue
stringdisplay
SetField [4/4]

Source code

public virtual bool SetField(string name, string value, string display, bool saveAppearance)
Arguments
TypeNameDescription
stringname
stringvalue
stringdisplay
boolsaveAppearance
SetListSelection

Source code

public virtual bool SetListSelection(string name, string[] value)
Arguments
TypeNameDescription
stringname
string``[]value
IsInAP

Source code

internal bool IsInAP(PdfDictionary nDic, PdfName check)
Arguments
TypeNameDescription
PdfDictionarynDic
PdfNamecheck
GetFieldItem

Source code

public virtual Item GetFieldItem(string name)
Arguments
TypeNameDescription
stringname
GetTranslatedFieldName

Source code

public virtual string GetTranslatedFieldName(string name)
Arguments
TypeNameDescription
stringname
GetFieldPositions

Source code

public virtual IList<FieldPosition> GetFieldPositions(string name)
Arguments
TypeNameDescription
stringname
RemoveFieldsFromPage

Source code

public virtual bool RemoveFieldsFromPage(int page)
Arguments
TypeNameDescription
intpage
RemoveField [1/2]

Source code

public virtual bool RemoveField(string name, int page)
Arguments
TypeNameDescription
stringname
intpage
RemoveField [2/2]

Source code

public virtual bool RemoveField(string name)
Arguments
TypeNameDescription
stringname
ClearSignatureField

Source code

public virtual bool ClearSignatureField(string name)
Arguments
TypeNameDescription
stringname
GetSignatureNames

Source code

public virtual List<string> GetSignatureNames()
GetBlankSignatureNames

Source code

public virtual List<string> GetBlankSignatureNames()
GetSignatureDictionary

Source code

public virtual PdfDictionary GetSignatureDictionary(string name)
Arguments
TypeNameDescription
stringname
GetNormalAppearance

Source code

public virtual PdfIndirectReference GetNormalAppearance(string name)
Arguments
TypeNameDescription
stringname
SignatureCoversWholeDocument

Source code

public virtual bool SignatureCoversWholeDocument(string name)
Arguments
TypeNameDescription
stringname
VerifySignature

Source code

public virtual PdfPKCS7 VerifySignature(string name)
Arguments
TypeNameDescription
stringname
GetRevision

Source code

public virtual int GetRevision(string field)
Arguments
TypeNameDescription
stringfield
ExtractRevision

Source code

public virtual Stream ExtractRevision(string field)
Arguments
TypeNameDescription
stringfield
SetExtraMargin

Source code

public virtual void SetExtraMargin(float extraMarginLeft, float extraMarginTop)
Arguments
TypeNameDescription
floatextraMarginLeft
floatextraMarginTop
AddSubstitutionFont

Source code

public virtual void AddSubstitutionFont(BaseFont font)
Arguments
TypeNameDescription
BaseFontfont
RemoveXfa

Source code

public virtual void RemoveXfa()
GetNewPushbuttonFromField [1/2]

Source code

public virtual PushbuttonField GetNewPushbuttonFromField(string field)
Arguments
TypeNameDescription
stringfield
GetNewPushbuttonFromField [2/2]

Source code

public virtual PushbuttonField GetNewPushbuttonFromField(string field, int order)
Arguments
TypeNameDescription
stringfield
intorder
ReplacePushbuttonField [1/2]

Source code

public virtual bool ReplacePushbuttonField(string field, PdfFormField button)
Arguments
TypeNameDescription
stringfield
PdfFormFieldbutton
ReplacePushbuttonField [2/2]

Source code

public virtual bool ReplacePushbuttonField(string field, PdfFormField button, int order)
Arguments
TypeNameDescription
stringfield
PdfFormFieldbutton
intorder
DoesSignatureFieldExist

Source code

public virtual bool DoesSignatureFieldExist(string name)
Arguments
TypeNameDescription
stringname

Properties

Fields
public virtual IDictionary<string, Item> Fields { get; }
GenerateAppearances
public virtual bool GenerateAppearances { get; set; }
TotalRevisions
public virtual int TotalRevisions { get; }
FieldCache
public virtual IDictionary<string, TextField> FieldCache { get; set; }
SubstitutionFonts
public virtual List<BaseFont> SubstitutionFonts { get; set; }
Xfa
public virtual XfaForm Xfa { get; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.