sempdf v1.9.1Interfaces
Interface: ShapeStyle
sempdf / ShapeStyle
Defined in: src/types.ts:3560
Simplified styling for the PdfPage shape helpers (rect, line,
circle, ellipse). The paint mode is inferred: a fill and stroke
together paint both; fill alone fills; otherwise the shape is stroked.
Extends
ArtifactOptions
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
artifactSubtype? | "Header" | "Footer" | "Watermark" | Optional artifact subtype, such as Header, Footer, or Watermark. | ArtifactOptions.artifactSubtype | src/types.ts:379 |
artifactType? | "Pagination" | "Layout" | "Page" | Artifact type written to the marked-content property dictionary. | ArtifactOptions.artifactType | src/types.ts:377 |
dashArray? | number[] | Dash pattern for stroked shapes. | - | src/types.ts:3572 |
fill? | ColorInput | Fill color. Presence enables fill painting. | - | src/types.ts:3562 |
lineCap? | LineCap | Line cap for stroked shapes. | - | src/types.ts:3568 |
lineJoin? | LineJoin | Line join for stroked shapes. | - | src/types.ts:3570 |
lineWidth? | number | Stroke width in PDF points. | - | src/types.ts:3566 |
stroke? | ColorInput | Stroke color. Defaults to black when only lineWidth is set. | - | src/types.ts:3564 |
tag? | "Artifact" | Structure tag; use "Artifact" to mark decorative shapes. | - | src/types.ts:3574 |