sempdf
sempdf v1.9.1Interfaces

Interface: ShapeStyle

sempdf v1.9.1


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

PropertyTypeDescriptionInherited fromDefined in
artifactSubtype?"Header" | "Footer" | "Watermark"Optional artifact subtype, such as Header, Footer, or Watermark.ArtifactOptions.artifactSubtypesrc/types.ts:379
artifactType?"Pagination" | "Layout" | "Page"Artifact type written to the marked-content property dictionary.ArtifactOptions.artifactTypesrc/types.ts:377
dashArray?number[]Dash pattern for stroked shapes.-src/types.ts:3572
fill?ColorInputFill color. Presence enables fill painting.-src/types.ts:3562
lineCap?LineCapLine cap for stroked shapes.-src/types.ts:3568
lineJoin?LineJoinLine join for stroked shapes.-src/types.ts:3570
lineWidth?numberStroke width in PDF points.-src/types.ts:3566
stroke?ColorInputStroke 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

On this page