Table of Contents

Method Image

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Image(FileInfo)

Adds an image from file.

public Image Image(FileInfo file)

Parameters

file FileInfo

The image file.

Returns

Image

The added image.

Remarks

Read the Images section of the C# PDF generation quick start guide for examples of using images.

Exceptions

ArgumentNullException

file is null.

UnsupportedImageException

Unsupported or invalid image.

Image(Stream)

Adds an image from stream.

public Image Image(Stream stream)

Parameters

stream Stream

The image stream.

Returns

Image

The added image.

Remarks

Caller of the method is responsible for disposing of the stream.

Read the Images section of the C# PDF generation quick start guide for examples of using images.

Exceptions

ArgumentNullException

stream is null.

UnsupportedImageException

Unsupported or invalid image.