Class
ImageSegment

Segment that inserts an image into the PDF document

Definition

Namespace:Telerik.Documents.AI.Tools.Fixed.Core.Models.ContentSegments

Assembly:Telerik.Documents.AI.Tools.Fixed.Core.dll

Syntax:

cs-api-definition
public class ImageSegment : ContentSegment

Inheritance: objectContentSegmentImageSegment

Constructors

ImageSegment()

Declaration

cs-api-definition
public ImageSegment()

Properties

Height

The height of the image in points. If not specified, the original image height will be used. Must be a positive number.

Declaration

cs-api-definition
public double? Height { get; set; }

Property Value

double?

ImagePath

The path to the image file to insert. Supports common formats: JPEG, PNG, BMP, TIFF, GIF. Must be an absolute path or relative to the current working directory.

Declaration

cs-api-definition
public string ImagePath { get; set; }

Property Value

string

MaintainAspectRatio

Whether to maintain the original aspect ratio when width or height is specified. If true, the image will be scaled proportionally. Default is true.

Declaration

cs-api-definition
public bool MaintainAspectRatio { get; set; }

Property Value

bool

SegmentType

The type of content segment

Declaration

cs-api-definition
public override string SegmentType { get; }

Property Value

string

Overrides ContentSegment.SegmentType

Width

The width of the image in points. If not specified, the original image width will be used. Must be a positive number.

Declaration

cs-api-definition
public double? Width { get; set; }

Property Value

double?