Skip to content

happypdf / PDFPageDrawTextOptions

Interface: PDFPageDrawTextOptions

Defined in: src/api/PDFPageOptions.ts:28

Extends

  • SvgOptions

Properties

align?

ts
optional align?: TextAlign;

Defined in: src/api/PDFPageOptions.ts:45

How wrapped lines are aligned within maxWidth. Defaults to left. justify stretches every line but the last of each paragraph.


blendMode?

ts
optional blendMode?: BlendMode;

Defined in: src/api/PDFPageOptions.ts:31


breakStrategy?

ts
optional breakStrategy?: "greedy";

Defined in: src/api/PDFPageOptions.ts:47

Which algorithm picks the break points. Defaults to greedy.


characterSpacing?

ts
optional characterSpacing?: number;

Defined in: src/api/PDFPageOptions.ts:55


clipSpaces?

ts
optional clipSpaces?: Space[];

Defined in: src/api/PDFPageOptions.ts:10

Inherited from

ts
SvgOptions.clipSpaces

color?

ts
optional color?: Color;

Defined in: src/api/PDFPageOptions.ts:29


font?

ts
optional font?: PDFFont;

Defined in: src/api/PDFPageOptions.ts:32


lineHeight?

ts
optional lineHeight?: number;

Defined in: src/api/PDFPageOptions.ts:39


locale?

ts
optional locale?: string;

Defined in: src/api/PDFPageOptions.ts:54

Locale used for word segmentation. Defaults to the runtime's.


matrix?

ts
optional matrix?: TransformationMatrix;

Defined in: src/api/PDFPageOptions.ts:9

Inherited from

ts
SvgOptions.matrix

maxWidth?

ts
optional maxWidth?: number;

Defined in: src/api/PDFPageOptions.ts:40


opacity?

ts
optional opacity?: number;

Defined in: src/api/PDFPageOptions.ts:30


renderMode?

ts
optional renderMode?: TextRenderingMode;

Defined in: src/api/PDFPageOptions.ts:58


rotate?

ts
optional rotate?: Rotation;

Defined in: src/api/PDFPageOptions.ts:34


size?

ts
optional size?: number;

Defined in: src/api/PDFPageOptions.ts:33


strokeColor?

ts
optional strokeColor?: Color;

Defined in: src/api/PDFPageOptions.ts:57


strokeWidth?

ts
optional strokeWidth?: number;

Defined in: src/api/PDFPageOptions.ts:56


wordBreak?

ts
optional wordBreak?: WordBreak;

Defined in: src/api/PDFPageOptions.ts:52

Whether a word wider than maxWidth may be broken between graphemes. Defaults to normal (break it); keep-all lets it overflow.


x?

ts
optional x?: number;

Defined in: src/api/PDFPageOptions.ts:37


xSkew?

ts
optional xSkew?: Rotation;

Defined in: src/api/PDFPageOptions.ts:35


y?

ts
optional y?: number;

Defined in: src/api/PDFPageOptions.ts:38


ySkew?

ts
optional ySkew?: Rotation;

Defined in: src/api/PDFPageOptions.ts:36

MIT Licensed. A fork of pdf-lib.