Skip to content

CharacterInfo

@scaryterry/pdfium


Defined in: src/core/types.ts:622

Extended information about a character in a PDF page.

readonly angle: number

Defined in: src/core/types.ts:638

Rotation angle in radians.


readonly char: string

Defined in: src/core/types.ts:628

The character as a string.


readonly optional fillColour: Colour

Defined in: src/core/types.ts:650

Fill colour (if available).


readonly optional fontName: string

Defined in: src/core/types.ts:634

Font name.


readonly fontSize: number

Defined in: src/core/types.ts:630

Font size in points.


readonly fontWeight: number

Defined in: src/core/types.ts:632

Font weight (100-900, where 400 is normal and 700 is bold).


readonly hasUnicodeMapError: boolean

Defined in: src/core/types.ts:648

Whether there was an error mapping this character to Unicode.


readonly index: number

Defined in: src/core/types.ts:624

Zero-based character index.


readonly isGenerated: boolean

Defined in: src/core/types.ts:644

Whether this character was generated (not from the original PDF content).


readonly isHyphen: boolean

Defined in: src/core/types.ts:646

Whether this character is a hyphen that may indicate a word break.


readonly originX: number

Defined in: src/core/types.ts:640

Character origin X coordinate.


readonly originY: number

Defined in: src/core/types.ts:642

Character origin Y coordinate.


readonly renderMode: TextRenderMode

Defined in: src/core/types.ts:636

Text rendering mode.


readonly optional strokeColour: Colour

Defined in: src/core/types.ts:652

Stroke colour (if available).


readonly unicode: number

Defined in: src/core/types.ts:626

Unicode code point of the character.