Skip to content

happypdf / AppearanceCharacteristics

Class: AppearanceCharacteristics ​

Defined in: src/core/annotation/AppearanceCharacteristics.ts:8

Constructors ​

Constructor ​

ts
protected new AppearanceCharacteristics(dict): AppearanceCharacteristics;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:14

Parameters ​

ParameterType
dictPDFDict

Returns ​

AppearanceCharacteristics

Properties ​

dict ​

ts
readonly dict: PDFDict;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:9

Methods ​

AC() ​

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

Defined in: src/core/annotation/AppearanceCharacteristics.ts:48

Returns ​

| PDFHexString | PDFString | undefined


BC() ​

ts
BC(): PDFArray | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:24

Returns ​

PDFArray | undefined


BG() ​

ts
BG(): PDFArray | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:30

Returns ​

PDFArray | undefined


CA() ​

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

Defined in: src/core/annotation/AppearanceCharacteristics.ts:36

Returns ​

| PDFHexString | PDFString | undefined


fromDict() ​

ts
static fromDict(dict): AppearanceCharacteristics;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:11

Parameters ​

ParameterType
dictPDFDict

Returns ​

AppearanceCharacteristics


getBackgroundColor() ​

ts
getBackgroundColor(): number[] | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:72

Returns ​

number[] | undefined


getBorderColor() ​

ts
getBorderColor(): number[] | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:58

Returns ​

number[] | undefined


getCaptions() ​

ts
getCaptions(): {
  down?: string;
  normal?: string;
  rollover?: string;
};

Defined in: src/core/annotation/AppearanceCharacteristics.ts:86

Returns ​

ts
{
  down?: string;
  normal?: string;
  rollover?: string;
}
down? ​
ts
optional down?: string;
normal? ​
ts
optional normal?: string;
rollover? ​
ts
optional rollover?: string;

getRotation() ​

ts
getRotation(): number | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:54

Returns ​

number | undefined


R() ​

ts
R(): PDFNumber | undefined;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:18

Returns ​

PDFNumber | undefined


RC() ​

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

Defined in: src/core/annotation/AppearanceCharacteristics.ts:42

Returns ​

| PDFHexString | PDFString | undefined


setBackgroundColor() ​

ts
setBackgroundColor(color): void;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:108

Parameters ​

ParameterType
colornumber[]

Returns ​

void


setBorderColor() ​

ts
setBorderColor(color): void;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:103

Parameters ​

ParameterType
colornumber[]

Returns ​

void


setCaptions() ​

ts
setCaptions(captions): void;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:113

Parameters ​

ParameterType
captions{ down?: string; normal: string; rollover?: string; }
captions.down?string
captions.normalstring
captions.rollover?string

Returns ​

void


setRotation() ​

ts
setRotation(rotation): void;

Defined in: src/core/annotation/AppearanceCharacteristics.ts:98

Parameters ​

ParameterType
rotationnumber

Returns ​

void

MIT Licensed. A fork of pdf-lib.