sempdf
sempdf v1.9.1Interfaces

Interface: FlowImageOptions

sempdf v1.9.1


sempdf / FlowImageOptions

Defined in: src/types.ts:1454

Options for placing images through the flow layout API.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
align?BlockAlignHorizontal alignment for laid-out content.-src/types.ts:1469
altText?stringAlternate text for tagged non-text content.JpegImageOptions.altTextsrc/types.ts:2757
artifactSubtype?"Header" | "Footer" | "Watermark"Optional artifact subtype, such as Header, Footer, or Watermark.BmpImageOptions.artifactSubtypesrc/types.ts:379
artifactType?"Pagination" | "Layout" | "Page"Artifact type written to the marked-content property dictionary.BmpImageOptions.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
height?numberHeight in PDF points.-src/types.ts:1465
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.JpegImageOptions.iccProfilesrc/types.ts:2767
margin?FlowMarginShorthandCSS-like margin shorthand in PDF points.FlowBlockSpacingOptions.marginsrc/types.ts:1271
marginBottom?numberBottom margin in PDF points.FlowBlockSpacingOptions.marginBottomsrc/types.ts:1277
marginLeft?numberLeft margin in PDF points.FlowBlockSpacingOptions.marginLeftsrc/types.ts:1279
marginRight?numberRight margin in PDF points.FlowBlockSpacingOptions.marginRightsrc/types.ts:1275
marginTop?numberTop margin in PDF points.FlowBlockSpacingOptions.marginTopsrc/types.ts:1273
maxWidth?numberMaximum image width in PDF points.-src/types.ts:1467
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.JpegImageOptions.structuresrc/types.ts:2761
tag?| "Artifact" | PdfFigureStructureTagStructure tag used for tagged PDF output.JpegImageOptions.tagsrc/types.ts:2759
width?numberWidth in PDF points.-src/types.ts:1463

On this page