Table of Contents

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 PdfReader

reader of the input file

Properties

Fields

public IList<PrAcroForm.FieldInformation> Fields { get; }

Property Value

IList<PrAcroForm.FieldInformation>

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

PrAcroForm.FieldInformation

GetRefByName(string)

Given the title (/T) of a reference, return the associated reference

public PrIndirectReference GetRefByName(string name)

Parameters

name string

a 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 PdfArray

An array of fields

fieldDict PrIndirectReference

the last field dictionary we encountered (recursively)

title string

the 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 PdfDictionary

one dictionary

child PdfDictionary

the 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 PdfDictionary

the docment root