Skip to content

modern-pdf-lib


modern-pdf-lib / TilingPatternOptions

Interface: TilingPatternOptions

Defined in: src/core/patterns.ts:102

Options for creating a tiling pattern (PatternType 1).

Properties

height

readonly height: number

Defined in: src/core/patterns.ts:106

Height of one tile in user-space units.


ops

readonly ops: string

Defined in: src/core/patterns.ts:122

Raw PDF content-stream operators that paint one tile.


paintType?

readonly optional paintType: 1 | 2

Defined in: src/core/patterns.ts:113

Paint type.

  • 1 (default) — coloured: the pattern's content stream specifies its own colours.
  • 2 — uncoloured: colours are supplied when the pattern is painted.

tilingType?

readonly optional tilingType: 1 | 3 | 2

Defined in: src/core/patterns.ts:120

Tiling type.

  • 1 (default) — constant spacing.
  • 2 — no distortion.
  • 3 — constant spacing and faster tiling.

width

readonly width: number

Defined in: src/core/patterns.ts:104

Width of one tile in user-space units.

Released under the MIT License.