Back to Jspdf

AcroForm

docs/module-AcroForm.html

4.2.13.0 KB
Original Source

jsPDF AcroForm Plugin

Source:

Classes

AcroFormButtonAcroFormCheckBoxAcroFormChoiceFieldAcroFormComboBoxAcroFormEditBoxAcroFormFieldAcroFormListBoxAcroFormPasswordFieldAcroFormPDFObjectAcroFormPushButtonAcroFormRadioButtonAcroFormTextField

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:
NameTypeDescription
fieldObjectObject
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:
NameTypeDescription
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...)

(inner) pdfEscapeName()

Source:

Escapes a PDF Name Object. Replaces special characters (delimiter, whitespace, #) with their hex representation.