CharacterInfo
Defined in: src/core/types.ts:622
Extended information about a character in a PDF page.
Properties
Section titled “Properties”
readonlyangle:number
Defined in: src/core/types.ts:638
Rotation angle in radians.
readonlychar:string
Defined in: src/core/types.ts:628
The character as a string.
fillColour?
Section titled “fillColour?”
readonlyoptionalfillColour:Colour
Defined in: src/core/types.ts:650
Fill colour (if available).
fontName?
Section titled “fontName?”
readonlyoptionalfontName:string
Defined in: src/core/types.ts:634
Font name.
fontSize
Section titled “fontSize”
readonlyfontSize:number
Defined in: src/core/types.ts:630
Font size in points.
fontWeight
Section titled “fontWeight”
readonlyfontWeight:number
Defined in: src/core/types.ts:632
Font weight (100-900, where 400 is normal and 700 is bold).
hasUnicodeMapError
Section titled “hasUnicodeMapError”
readonlyhasUnicodeMapError:boolean
Defined in: src/core/types.ts:648
Whether there was an error mapping this character to Unicode.
readonlyindex:number
Defined in: src/core/types.ts:624
Zero-based character index.
isGenerated
Section titled “isGenerated”
readonlyisGenerated:boolean
Defined in: src/core/types.ts:644
Whether this character was generated (not from the original PDF content).
isHyphen
Section titled “isHyphen”
readonlyisHyphen:boolean
Defined in: src/core/types.ts:646
Whether this character is a hyphen that may indicate a word break.
originX
Section titled “originX”
readonlyoriginX:number
Defined in: src/core/types.ts:640
Character origin X coordinate.
originY
Section titled “originY”
readonlyoriginY:number
Defined in: src/core/types.ts:642
Character origin Y coordinate.
renderMode
Section titled “renderMode”
readonlyrenderMode:TextRenderMode
Defined in: src/core/types.ts:636
Text rendering mode.
strokeColour?
Section titled “strokeColour?”
readonlyoptionalstrokeColour:Colour
Defined in: src/core/types.ts:652
Stroke colour (if available).
unicode
Section titled “unicode”
readonlyunicode:number
Defined in: src/core/types.ts:626
Unicode code point of the character.