sempdf
sempdf v1.9.1Interfaces

Interface: JpegImageOptions

sempdf v1.9.1


sempdf / JpegImageOptions

Defined in: src/types.ts:2747

Options for placing JPEG images on a page.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
altText?stringAlternate text for tagged non-text content.-src/types.ts:2757
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:2755
iccProfile?BinaryDataICC profile bytes used to tag the image's color space as ICCBased (ISO 32000-2 § 8.6.5.5). When provided, the image's ColorSpace becomes [/ICCBased ref] referencing the embedded profile stream.-src/types.ts:2767
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:2761
tag?| "Artifact" | PdfFigureStructureTagStructure tag used for tagged PDF output.-src/types.ts:2759
widthnumberWidth in PDF points.-src/types.ts:2753
xnumberHorizontal position in PDF points.-src/types.ts:2749
ynumberVertical position in PDF points.-src/types.ts:2751

On this page