Class PrAcroForm
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
This class captures an AcroForm on input. Basically, it extends Dictionary by indexing the fields of an AcroForm @author Mark Thompson
public class PrAcroForm : PdfDictionary
- Inheritance
-
PrAcroForm
- Inherited Members
Constructors
PrAcroForm(PdfReader)
Constructor
public PrAcroForm(PdfReader reader)
Parameters
reader
PdfReaderreader of the input file
Properties
Fields
public IList<PrAcroForm.FieldInformation> Fields { get; }
Property Value
Size
Number of fields found
public int Size { get; }
Property Value
- int
size
Methods
GetField(string)
public PrAcroForm.FieldInformation GetField(string name)
Parameters
name
string
Returns
GetRefByName(string)
Given the title (/T) of a reference, return the associated reference
public PrIndirectReference GetRefByName(string name)
Parameters
name
stringa string containing the path
Returns
- PrIndirectReference
a reference to the field, or null
IterateFields(PdfArray, PrIndirectReference, string)
After reading, we index all of the fields. Recursive.
protected void IterateFields(PdfArray fieldlist, PrIndirectReference fieldDict, string title)
Parameters
fieldlist
PdfArrayAn array of fields
fieldDict
PrIndirectReferencethe last field dictionary we encountered (recursively)
title
stringthe pathname of the field, up to this point or null
MergeAttrib(PdfDictionary, PdfDictionary)
merge field attributes from two dictionaries
protected static PdfDictionary MergeAttrib(PdfDictionary parent, PdfDictionary child)
Parameters
parent
PdfDictionaryone dictionary
child
PdfDictionarythe other dictionary
Returns
- PdfDictionary
a merged dictionary
PushAttrib(PdfDictionary)
stack a level of dictionary. Merge in a dictionary from this level
protected void PushAttrib(PdfDictionary dict)
Parameters
dict
PdfDictionary
ReadAcroForm(PdfDictionary)
Read, and comprehend the acroform
public void ReadAcroForm(PdfDictionary root)
Parameters
root
PdfDictionarythe docment root