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
StreamThe 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
isnull
.
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
isnull
.
CreateColorProfile(string)
Creates a PDF color profile from the specified ICC color profile file.
public PdfColorProfile CreateColorProfile(string profilePath)
Parameters
profilePath
stringThe 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
isnull
.- FileNotFoundException
Thrown if the specified file does not exist.