Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfInlineImage

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Raster image that flows between text runs as one indivisible inline element.

Inheritance

Constructors

PdfInlineImage 3 overloads
public PdfInlineImage(byte[] imageBytes, OfficeLength width, OfficeLength height, string? altText = null, OfficeImageFit fit = Contain, OfficeLength baselineOffset = default) #

Creates an inline image from first-party supported image bytes.

Parameters

imageBytes byte[] required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
altText string? = null optional
fit OfficeIMO.Drawing.OfficeImageFit = Contain optional
baselineOffset OfficeIMO.OfficeLength = default optional
public PdfInlineImage(byte[] imageBytes, OfficeLength width, OfficeLength height, PdfImageStyle style, OfficeLength baselineOffset) #

Creates an inline image with source crop, rotation, mirrors and alternate text from a reusable image style.

Parameters

imageBytes byte[] required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
style OfficeIMO.Pdf.PdfImageStyle required
baselineOffset OfficeIMO.OfficeLength required
public PdfInlineImage(OfficeDrawing drawing, OfficeLength width, OfficeLength height, string? altText, OfficeLength baselineOffset) #

Creates an inline vector drawing, such as a chart or a shape, that flows between text runs like a picture.

Parameters

drawing OfficeIMO.Drawing.OfficeDrawing required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
altText string? required
baselineOffset OfficeIMO.OfficeLength required

Properties

public OfficeImageFit Fit { get; } #

Image fitting mode inside the requested inline frame.