sempdf
sempdf v1.9.1Interfaces

Interface: Jp2ImageOptions

sempdf v1.9.1


sempdf / Jp2ImageOptions

Defined in: src/types.ts:2906

Options for placing JPEG 2000 (JP2) images on a page. PDF spec supports JPXDecode filter for JPEG 2000 image data.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
altText?stringAlternate text for tagged non-text content.-src/types.ts:2916
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:2914
iccProfile?BinaryDataICC profile bytes used to tag the image's color space as ICCBased.-src/types.ts:2924
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:2920
tag?| "Artifact" | PdfFigureStructureTagStructure tag used for tagged PDF output.-src/types.ts:2918
widthnumberWidth in PDF points.-src/types.ts:2912
xnumberHorizontal position in PDF points.-src/types.ts:2908
ynumberVertical position in PDF points.-src/types.ts:2910

On this page