XRendering IccCmyk Property. The path to the default CMYK ICC color profile. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Value Read Only Description
[C#] string

[Visual Basic]
String
  "standard" No The path to the default CMYK ICC color profile.

 

   

Notes
 

A path to the default CMYK ICC color profile.

The profile that will be used to convert any device CMYK specified in the PDF file to the device independent working color space.

This is used when the output ColorSpace is Lab or another device independent color space. If the IccOutput indicates that a color profile should be used the output is always device independent. If the IccOutput indicates that no color profile should be used then the output is always device dependent.

This property can take a path to an icm file. However there are also two special values you can use. If the property takes the value "device" then the device color space will be used. If the property takes the value "standard" then a built in default color profile will be used.

If this property is set to "standard" or a path to a color profile then IccRgb, IccCmyk, IccGray and IccOutput should also be set to "standard" or paths to color profiles. All color spaces are assumed to be device independent color spaces.

If this property is set to "device" then IccRgb, IccCmyk, IccGray and IccOutput should also be set to "device". All color spaces are all assumed to be device color spaces.

If this property is set to a file name with no path information, then the folder "<windows>\system32\spool\drivers\color" will be searched to locate the file.

 

   

Example
 

The following example shows the effect that this parameter has on PDF rendering.

[C#]
Doc theDoc = new Doc();
theDoc.Rect.Inset(20, 40);
theDoc.FontSize = 96;
// Add CMYK Content
theDoc.Color.String = "200 20 20 20";
theDoc.AddText("Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.");
theDoc.Rect.String = theDoc.MediaBox.String;
theDoc.Rendering.DotsPerInch = 36;
theDoc.Rendering.IccCmyk = Server.MapPath("../mypics/cmyk.icc");
theDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Rgb;
// Save the image
theDoc.Rendering.Save(Server.MapPath("RenderingIccCmyk.png"));
theDoc.Clear();

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Rect.Inset(20, 40)
theDoc.FontSize = 96
' Add CMYK Content
theDoc.Color.String = "200 20 20 20"
theDoc.AddText("Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.")
theDoc.Rect.String = theDoc.MediaBox.String
theDoc.Rendering.DotsPerInch = 36
theDoc.Rendering.IccCmyk = Server.MapPath("../mypics/cmyk.icc")
theDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Rgb
' Save the image
theDoc.Rendering.Save(Server.MapPath("RenderingIccCmyk.png"))
theDoc.Clear()


RenderingIccCmyk.png