sempdf
sempdf v1.9.1Interfaces

Interface: WebpImageOptions

sempdf v1.9.1


sempdf / WebpImageOptions

Defined in: src/types.ts:2930

Options for placing WebP images on a page.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
altText?stringAlternate text for tagged non-text content.-src/types.ts:2940
artifactSubtype?"Header" | "Footer" | "Watermark"Optional artifact subtype, such as Header, Footer, or Watermark.ImageFitOptions.artifactSubtypesrc/types.ts:379
artifactType?"Pagination" | "Layout" | "Page"Artifact type written to the marked-content property dictionary.ImageFitOptions.artifactTypesrc/types.ts:377
clip?ImageClipClip the image to a shape inscribed in its box: "ellipse" fills the box, "circle" uses the smaller box dimension (centered). Defaults to "none".ImageFitOptions.clipsrc/types.ts:2741
fit?ImageFitHow the image fills its box: - "fill" (default) — stretch to the box, ignoring aspect ratio. - "contain" — scale to fit inside the box, preserving aspect (letterboxed). - "cover" — scale to cover the box, preserving aspect (overflow cropped).ImageFitOptions.fitsrc/types.ts:2734
heightnumberHeight in PDF points.-src/types.ts:2938
iccProfile?BinaryDataICC profile bytes used to tag the image's color space as ICCBased.-src/types.ts:2948
position?ImagePositionAlignment within the box when fit leaves slack or overflow. Defaults to "center".ImageFitOptions.positionsrc/types.ts:2736
structure?PdfStructureOptionsAdditional structure metadata for tagged PDF output.-src/types.ts:2944
tag?| "Artifact" | PdfFigureStructureTagStructure tag used for tagged PDF output.-src/types.ts:2942
widthnumberWidth in PDF points.-src/types.ts:2936
xnumberHorizontal position in PDF points.-src/types.ts:2932
ynumberVertical position in PDF points.-src/types.ts:2934

On this page