Skip to content

happypdf / PDFAcroChoice

Class: PDFAcroChoice ​

Defined in: src/core/acroform/PDFAcroChoice.ts:9

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
protected new PDFAcroChoice(dict, ref): PDFAcroChoice;

Defined in: src/core/acroform/PDFAcroField.ts:22

Parameters ​

ParameterType
dictPDFDict
refPDFRef

Returns ​

PDFAcroChoice

Inherited from ​

PDFAcroTerminal.constructor

Properties ​

dict ​

ts
readonly dict: PDFDict;

Defined in: src/core/acroform/PDFAcroField.ts:19

Inherited from ​

PDFAcroTerminal.dict


ref ​

ts
readonly ref: PDFRef;

Defined in: src/core/acroform/PDFAcroField.ts:20

Inherited from ​

PDFAcroTerminal.ref

Methods ​

addWidget() ​

ts
addWidget(ref): void;

Defined in: src/core/acroform/PDFAcroTerminal.ts:33

Parameters ​

ParameterType
refPDFRef

Returns ​

void

Inherited from ​

PDFAcroTerminal.addWidget


ascend() ​

ts
ascend(visitor): void;

Defined in: src/core/acroform/PDFAcroField.ts:160

Parameters ​

ParameterType
visitor(node) => any

Returns ​

void

Inherited from ​

PDFAcroTerminal.ascend


clearFlag() ​

ts
clearFlag(flag): void;

Defined in: src/core/acroform/PDFAcroField.ts:142

Parameters ​

ParameterType
flagnumber

Returns ​

void

Inherited from ​

PDFAcroTerminal.clearFlag


DA() ​

ts
DA(): 
  | PDFHexString
  | PDFString
  | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:49

Returns ​

| PDFHexString | PDFString | undefined

Inherited from ​

PDFAcroTerminal.DA


Ff() ​

ts
Ff(): PDFNumber | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:31

Returns ​

PDFNumber | undefined

Inherited from ​

PDFAcroTerminal.Ff


fromDict() ​

ts
static fromDict(dict, ref): PDFAcroTerminal;

Defined in: src/core/acroform/PDFAcroTerminal.ts:9

Parameters ​

ParameterType
dictPDFDict
refPDFRef

Returns ​

PDFAcroTerminal

Inherited from ​

PDFAcroTerminal.fromDict


FT() ​

ts
FT(): PDFName;

Defined in: src/core/acroform/PDFAcroTerminal.ts:12

Returns ​

PDFName

Inherited from ​

PDFAcroTerminal.FT


getDefaultAppearance() ​

ts
getDefaultAppearance(): string | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:97

Returns ​

string | undefined

Inherited from ​

PDFAcroTerminal.getDefaultAppearance


getFlags() ​

ts
getFlags(): number;

Defined in: src/core/acroform/PDFAcroField.ts:124

Returns ​

number

Inherited from ​

PDFAcroTerminal.getFlags


getFullyQualifiedName() ​

ts
getFullyQualifiedName(): string | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:78

Returns ​

string | undefined

Inherited from ​

PDFAcroTerminal.getFullyQualifiedName


getInheritableAttribute() ​

ts
getInheritableAttribute(name): PDFObject | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:152

Parameters ​

ParameterType
namePDFName

Returns ​

PDFObject | undefined

Inherited from ​

PDFAcroTerminal.getInheritableAttribute


getOptions() ​

ts
getOptions(): {
  display: PDFHexString | PDFString;
  value: PDFHexString | PDFString;
}[];

Defined in: src/core/acroform/PDFAcroChoice.ts:106

Returns ​

{ display: PDFHexString | PDFString; value: PDFHexString | PDFString; }[]


getParent() ​

ts
getParent(): PDFAcroField | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:59

Returns ​

PDFAcroField | undefined

Inherited from ​

PDFAcroTerminal.getParent


getPartialName() ​

ts
getPartialName(): string | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:84

Returns ​

string | undefined

Inherited from ​

PDFAcroTerminal.getPartialName


getValues() ​

ts
getValues(): (PDFHexString | PDFString)[];

Defined in: src/core/acroform/PDFAcroChoice.ts:62

Returns ​

(PDFHexString | PDFString)[]


getWidgets() ​

ts
getWidgets(): PDFWidgetAnnotation[];

Defined in: src/core/acroform/PDFAcroTerminal.ts:17

Returns ​

PDFWidgetAnnotation[]

Inherited from ​

PDFAcroTerminal.getWidgets


hasFlag() ​

ts
hasFlag(flag): boolean;

Defined in: src/core/acroform/PDFAcroField.ts:132

Parameters ​

ParameterType
flagnumber

Returns ​

boolean

Inherited from ​

PDFAcroTerminal.hasFlag


Kids() ​

ts
Kids(): PDFArray | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:41

Returns ​

PDFArray | undefined

Inherited from ​

PDFAcroTerminal.Kids


normalizedEntries() ​

ts
normalizedEntries(): {
  Kids: PDFArray;
};

Defined in: src/core/acroform/PDFAcroTerminal.ts:54

Returns ​

ts
{
  Kids: PDFArray;
}
Kids ​
ts
Kids: PDFArray;

Inherited from ​

PDFAcroTerminal.normalizedEntries


Opt() ​

ts
Opt(): 
  | PDFHexString
  | PDFString
  | PDFArray
  | undefined;

Defined in: src/core/acroform/PDFAcroChoice.ts:83

Returns ​

| PDFHexString | PDFString | PDFArray | undefined


removeWidget() ​

ts
removeWidget(idx): void;

Defined in: src/core/acroform/PDFAcroTerminal.ts:38

Parameters ​

ParameterType
idxnumber

Returns ​

void

Inherited from ​

PDFAcroTerminal.removeWidget


setDefaultAppearance() ​

ts
setDefaultAppearance(appearance): void;

Defined in: src/core/acroform/PDFAcroField.ts:93

Parameters ​

ParameterType
appearancestring

Returns ​

void

Inherited from ​

PDFAcroTerminal.setDefaultAppearance


setFlag() ​

ts
setFlag(flag): void;

Defined in: src/core/acroform/PDFAcroField.ts:137

Parameters ​

ParameterType
flagnumber

Returns ​

void

Inherited from ​

PDFAcroTerminal.setFlag


setFlags() ​

ts
setFlags(flags): void;

Defined in: src/core/acroform/PDFAcroField.ts:128

Parameters ​

ParameterType
flagsnumber

Returns ​

void

Inherited from ​

PDFAcroTerminal.setFlags


setFlagTo() ​

ts
setFlagTo(flag, enable): void;

Defined in: src/core/acroform/PDFAcroField.ts:147

Parameters ​

ParameterType
flagnumber
enableboolean

Returns ​

void

Inherited from ​

PDFAcroTerminal.setFlagTo


setFontSize() ​

ts
setFontSize(fontSize): void;

Defined in: src/core/acroform/PDFAcroField.ts:107

Parameters ​

ParameterType
fontSizenumber

Returns ​

void

Inherited from ​

PDFAcroTerminal.setFontSize


setKids() ​

ts
setKids(kids): void;

Defined in: src/core/acroform/PDFAcroField.ts:55

Parameters ​

ParameterType
kidsPDFObject[]

Returns ​

void

Inherited from ​

PDFAcroTerminal.setKids


setOptions() ​

ts
setOptions(options): void;

Defined in: src/core/acroform/PDFAcroChoice.ts:92

Parameters ​

ParameterType
options{ display?: PDFHexString | PDFString; value: PDFHexString | PDFString; }[]

Returns ​

void


setParent() ​

ts
setParent(parent): void;

Defined in: src/core/acroform/PDFAcroField.ts:73

Parameters ​

ParameterType
parentPDFRef | undefined

Returns ​

void

Inherited from ​

PDFAcroTerminal.setParent


setPartialName() ​

ts
setPartialName(partialName): void;

Defined in: src/core/acroform/PDFAcroField.ts:88

Parameters ​

ParameterType
partialNamestring | undefined

Returns ​

void

Inherited from ​

PDFAcroTerminal.setPartialName


setValues() ​

ts
setValues(values): void;

Defined in: src/core/acroform/PDFAcroChoice.ts:10

Parameters ​

ParameterType
values(PDFHexString | PDFString)[]

Returns ​

void


T() ​

ts
T(): 
  | PDFHexString
  | PDFString
  | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:27

Returns ​

| PDFHexString | PDFString | undefined

Inherited from ​

PDFAcroTerminal.T


updateSelectedIndices() ​

ts
updateSelectedIndices(values): void;

Defined in: src/core/acroform/PDFAcroChoice.ts:46

Parameters ​

ParameterType
values(PDFHexString | PDFString)[]

Returns ​

void


V() ​

ts
V(): PDFObject | undefined;

Defined in: src/core/acroform/PDFAcroField.ts:36

Returns ​

PDFObject | undefined

Inherited from ​

PDFAcroTerminal.V


valuesAreValid() ​

ts
valuesAreValid(values): boolean;

Defined in: src/core/acroform/PDFAcroChoice.ts:35

Parameters ​

ParameterType
values(PDFHexString | PDFString)[]

Returns ​

boolean

MIT Licensed. A fork of pdf-lib.