Method AddColorProfile
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
AddColorProfile(Stream)
Adds a new ICC color profile read from specified stream to the end of the collection of document color profiles.
public PdfColorProfile AddColorProfile(Stream stream)
Parameters
stream
StreamThe stream to read color profile from.
Returns
- PdfColorProfile
The newly added PdfColorProfile.
AddColorProfile(byte[])
Adds a new ICC color profile to the end of the collection of document color profiles.
public PdfColorProfile AddColorProfile(byte[] profileBytes)
Parameters
profileBytes
byte[]The buffer with profile bytes.
Returns
- PdfColorProfile
The newly added PdfColorProfile.
AddColorProfile(string)
Adds a new ICC color profile read from file with specified name to the end of the collection of document color profiles.
public PdfColorProfile AddColorProfile(string fileName)
Parameters
fileName
stringThe name of the file to read color profile from.
Returns
- PdfColorProfile
The newly added PdfColorProfile.