Table of Contents

Method CreateColorProfile

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

CreateColorProfile(Stream)

Creates a PDF color profile from the specified ICC color profile stream.

public PdfColorProfile CreateColorProfile(Stream profileStream)

Parameters

profileStream Stream

The stream containing the ICC color profile data.

Returns

PdfColorProfile

A PdfColorProfile instance created from the provided ICC profile stream.

Remarks

You can use colors with associated color profiles. See, for example, how to create and use a profile-dependent color to draw a rectangle.

Exceptions

ArgumentNullException

profileStream is null.

CreateColorProfile(byte[])

Creates a PDF color profile from the specified ICC color profile.

public PdfColorProfile CreateColorProfile(byte[] profileBytes)

Parameters

profileBytes byte[]

The byte array representing the ICC color profile.

Returns

PdfColorProfile

A PdfColorProfile instance created from the provided ICC profile stream.

Remarks

You can use colors with associated color profiles. See, for example, how to create and use a profile-dependent color to draw a rectangle.

Exceptions

ArgumentNullException

profileBytes is null.

CreateColorProfile(string)

Creates a PDF color profile from the specified ICC color profile file.

public PdfColorProfile CreateColorProfile(string profilePath)

Parameters

profilePath string

The path to the ICC color profile file.

Returns

PdfColorProfile

A PdfColorProfile instance created from the provided ICC profile stream.

Remarks

You can use colors with associated color profiles. See, for example, how to create and use a profile-dependent color to draw a rectangle.

Exceptions

ArgumentNullException

profilePath is null.

FileNotFoundException

Thrown if the specified file does not exist.