sempdf
sempdf v1.9.1Interfaces

Interface: Jbig2ImageOptions

sempdf v1.9.1


sempdf / Jbig2ImageOptions

Defined in: src/types.ts:2821

Options for placing JBIG2 images on a page.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
altText?stringAlternate text for tagged non-text content.-src/types.ts:2831
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:2829
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:2835
tag?| "Artifact" | PdfFigureStructureTagStructure tag used for tagged PDF output.-src/types.ts:2833
widthnumberWidth in PDF points.-src/types.ts:2827
xnumberHorizontal position in PDF points.-src/types.ts:2823
ynumberVertical position in PDF points.-src/types.ts:2825

On this page