Skip to content

happypdf / PDFAcroRadioButton

Class: PDFAcroRadioButton ​

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

Extends ​

Constructors ​

Constructor ​

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

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

Parameters ​

ParameterType
dictPDFDict
refPDFRef

Returns ​

PDFAcroRadioButton

Inherited from ​

PDFAcroButton.constructor

Properties ​

dict ​

ts
readonly dict: PDFDict;

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

Inherited from ​

PDFAcroButton.dict


ref ​

ts
readonly ref: PDFRef;

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

Inherited from ​

PDFAcroButton.ref

Methods ​

addOpt() ​

ts
addOpt(opt, useExistingOptIdx): number;

Defined in: src/core/acroform/PDFAcroButton.ts:82

Reuses existing opt if one exists with the same value (assuming useExistingIdx is true). Returns index of existing (or new) opt.

Parameters ​

ParameterType
optPDFHexString | PDFString
useExistingOptIdxboolean

Returns ​

number

Inherited from ​

PDFAcroButton.addOpt


addWidget() ​

ts
addWidget(ref): void;

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

Parameters ​

ParameterType
refPDFRef

Returns ​

void

Inherited from ​

PDFAcroButton.addWidget


addWidgetWithOpt() ​

ts
addWidgetWithOpt(
   widget, 
   opt, 
   useExistingOptIdx): PDFName;

Defined in: src/core/acroform/PDFAcroButton.ts:102

Parameters ​

ParameterType
widgetPDFRef
optPDFHexString | PDFString
useExistingOptIdxboolean

Returns ​

PDFName

Inherited from ​

PDFAcroButton.addWidgetWithOpt


ascend() ​

ts
ascend(visitor): void;

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

Parameters ​

ParameterType
visitor(node) => any

Returns ​

void

Inherited from ​

PDFAcroButton.ascend


clearFlag() ​

ts
clearFlag(flag): void;

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

Parameters ​

ParameterType
flagnumber

Returns ​

void

Inherited from ​

PDFAcroButton.clearFlag


create() ​

ts
static create(context): PDFAcroRadioButton;

Defined in: src/core/acroform/PDFAcroRadioButton.ts:13

Parameters ​

ParameterType
contextPDFContext

Returns ​

PDFAcroRadioButton


DA() ​

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

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

Returns ​

| PDFHexString | PDFString | undefined

Inherited from ​

PDFAcroButton.DA


Ff() ​

ts
Ff(): PDFNumber | undefined;

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

Returns ​

PDFNumber | undefined

Inherited from ​

PDFAcroButton.Ff


fromDict() ​

ts
static fromDict(dict, ref): PDFAcroRadioButton;

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

Parameters ​

ParameterType
dictPDFDict
refPDFRef

Returns ​

PDFAcroRadioButton

Overrides ​

PDFAcroButton.fromDict


FT() ​

ts
FT(): PDFName;

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

Returns ​

PDFName

Inherited from ​

PDFAcroButton.FT


getDefaultAppearance() ​

ts
getDefaultAppearance(): string | undefined;

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

Returns ​

string | undefined

Inherited from ​

PDFAcroButton.getDefaultAppearance


getExportValues() ​

ts
getExportValues(): 
  | (PDFHexString | PDFString)[]
  | undefined;

Defined in: src/core/acroform/PDFAcroButton.ts:24

Returns ​

| (PDFHexString | PDFString)[] | undefined

Inherited from ​

PDFAcroButton.getExportValues


getFlags() ​

ts
getFlags(): number;

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

Returns ​

number

Inherited from ​

PDFAcroButton.getFlags


getFullyQualifiedName() ​

ts
getFullyQualifiedName(): string | undefined;

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

Returns ​

string | undefined

Inherited from ​

PDFAcroButton.getFullyQualifiedName


getInheritableAttribute() ​

ts
getInheritableAttribute(name): PDFObject | undefined;

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

Parameters ​

ParameterType
namePDFName

Returns ​

PDFObject | undefined

Inherited from ​

PDFAcroButton.getInheritableAttribute


getOnValues() ​

ts
getOnValues(): PDFName[];

Defined in: src/core/acroform/PDFAcroRadioButton.ts:45

Returns ​

PDFName[]


getParent() ​

ts
getParent(): PDFAcroField | undefined;

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

Returns ​

PDFAcroField | undefined

Inherited from ​

PDFAcroButton.getParent


getPartialName() ​

ts
getPartialName(): string | undefined;

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

Returns ​

string | undefined

Inherited from ​

PDFAcroButton.getPartialName


getValue() ​

ts
getValue(): PDFName;

Defined in: src/core/acroform/PDFAcroRadioButton.ts:39

Returns ​

PDFName


getWidgets() ​

ts
getWidgets(): PDFWidgetAnnotation[];

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

Returns ​

PDFWidgetAnnotation[]

Inherited from ​

PDFAcroButton.getWidgets


hasFlag() ​

ts
hasFlag(flag): boolean;

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

Parameters ​

ParameterType
flagnumber

Returns ​

boolean

Inherited from ​

PDFAcroButton.hasFlag


Kids() ​

ts
Kids(): PDFArray | undefined;

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

Returns ​

PDFArray | undefined

Inherited from ​

PDFAcroButton.Kids


normalizedEntries() ​

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

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

Returns ​

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

Inherited from ​

PDFAcroButton.normalizedEntries


normalizeExportValues() ​

ts
normalizeExportValues(): void;

Defined in: src/core/acroform/PDFAcroButton.ts:61

Returns ​

void

Inherited from ​

PDFAcroButton.normalizeExportValues


Opt() ​

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

Defined in: src/core/acroform/PDFAcroButton.ts:11

Returns ​

| PDFHexString | PDFString | PDFArray | undefined

Inherited from ​

PDFAcroButton.Opt


removeExportValue() ​

ts
removeExportValue(idx): void;

Defined in: src/core/acroform/PDFAcroButton.ts:44

Parameters ​

ParameterType
idxnumber

Returns ​

void

Inherited from ​

PDFAcroButton.removeExportValue


removeWidget() ​

ts
removeWidget(idx): void;

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

Parameters ​

ParameterType
idxnumber

Returns ​

void

Inherited from ​

PDFAcroButton.removeWidget


setDefaultAppearance() ​

ts
setDefaultAppearance(appearance): void;

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

Parameters ​

ParameterType
appearancestring

Returns ​

void

Inherited from ​

PDFAcroButton.setDefaultAppearance


setFlag() ​

ts
setFlag(flag): void;

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

Parameters ​

ParameterType
flagnumber

Returns ​

void

Inherited from ​

PDFAcroButton.setFlag


setFlags() ​

ts
setFlags(flags): void;

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

Parameters ​

ParameterType
flagsnumber

Returns ​

void

Inherited from ​

PDFAcroButton.setFlags


setFlagTo() ​

ts
setFlagTo(flag, enable): void;

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

Parameters ​

ParameterType
flagnumber
enableboolean

Returns ​

void

Inherited from ​

PDFAcroButton.setFlagTo


setFontSize() ​

ts
setFontSize(fontSize): void;

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

Parameters ​

ParameterType
fontSizenumber

Returns ​

void

Inherited from ​

PDFAcroButton.setFontSize


setKids() ​

ts
setKids(kids): void;

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

Parameters ​

ParameterType
kidsPDFObject[]

Returns ​

void

Inherited from ​

PDFAcroButton.setKids


setOpt() ​

ts
setOpt(opt): void;

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

Parameters ​

ParameterType
optPDFObject[]

Returns ​

void

Inherited from ​

PDFAcroButton.setOpt


setParent() ​

ts
setParent(parent): void;

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

Parameters ​

ParameterType
parentPDFRef | undefined

Returns ​

void

Inherited from ​

PDFAcroButton.setParent


setPartialName() ​

ts
setPartialName(partialName): void;

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

Parameters ​

ParameterType
partialNamestring | undefined

Returns ​

void

Inherited from ​

PDFAcroButton.setPartialName


setValue() ​

ts
setValue(value): void;

Defined in: src/core/acroform/PDFAcroRadioButton.ts:23

Parameters ​

ParameterType
valuePDFName

Returns ​

void


T() ​

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

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

Returns ​

| PDFHexString | PDFString | undefined

Inherited from ​

PDFAcroButton.T


V() ​

ts
V(): PDFObject | undefined;

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

Returns ​

PDFObject | undefined

Inherited from ​

PDFAcroButton.V

MIT Licensed. A fork of pdf-lib.