AcroForm

jsPDF AcroForm Plugin

Source:

Classes

AcroFormButton
AcroFormCheckBox
AcroFormChoiceField
AcroFormComboBox
AcroFormEditBox
AcroFormField
AcroFormListBox
AcroFormPasswordField
AcroFormPDFObject
AcroFormPushButton
AcroFormRadioButton
AcroFormTextField

Members

(inner) getKeyValueListForStream

Source:

Returns an key-value-List of all non-configurable Variables from the Object

(inner) setBit

Source:

Bit-Operations

Methods

addField(fieldObject) → {jsPDF}

Source:

Add an AcroForm-Field to the jsPDF-instance

Parameters:
Name Type Description
fieldObject Object
Returns:
Type
jsPDF

(inner) AcroFormDictionaryCallback()

Source:

Adds /Acroform X 0 R to Document Catalog, and creates the AcroForm Dictionary

(inner) calculateFontSpace(text, fontsize) → {TextMetrics}

Source:

Small workaround for calculating the TextMetric approximately.

Parameters:
Name Type Description
text
fontsize
Returns:

(Has Height and Width)

Type
TextMetrics

(inner) createAnnotationReference()

Source:

Create the Reference to the widgetAnnotation, so that it gets referenced in the Annot[] int the+ (Requires the Annotation Plugin)

(inner) createFieldCallback()

Source:

Creates the single Fields and writes them into the Document

If fieldArray is set, use the fields that are inside it instead of the fields from the AcroRoot (for the FormXObjects...)