Are spot colors supported in Pdf.Kit?
Regards,
Jan
Hi Jan,
Hi Jan,
Thanks for your patience.
From Spot Colors, if you mean the color composed of [Cyan](http://en.wikipedia.org/wiki/Cyan)
, [Magenta](http://en.wikipedia.org/wiki/Magenta)
, [Yellow](http://en.wikipedia.org/wiki/Yellow)
, and [Key](http://en.wikipedia.org/wiki/Keyline)
([black](http://en.wikipedia.org/wiki/Black)
) commonly referred to as [CMYK](http://en.wikipedia.org/wiki/CMYK)
, then I am pleased to share the we have a class named Color present under Aspose.Pdf.Generator namespace which supports the feature to create color from CMYK. Please take a look over the following code snippet.
[C#]
// instanatiate
a PDF object<o:p></o:p>
Pdf pdf1 = new Pdf();
// create a section object
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
Graph graph1 = new Graph(sec1,200,400);
sec1.Paragraphs.Add(graph1);
// the array object which holds position coordinates
float[] posArr = new float[] { 100, 100, 300, 100 };
Line line1 = new Line(graph1,posArr);
// specify the color object using CMYK values
line1.GraphInfo.Color = new Aspose.Pdf.Generator.Color(0,128,64,0);
// add line object to shapes collection of Graph
graph1.Shapes.Add(line1);
// save the PDF document
pdf1.Save("D:\\pdftest\\CMYKColorSpace.pdf");
For more information, please take a look over [Color](http://www.aspose.com/docs/display/pdfnet/Color+Class)
and also [CmykColorSpace](http://www.aspose.com/docs/display/pdfnet/CmykColorSpace+Class)
. In case of any further query, please feel free to contact.
Hi Nayyer,
thanks for the sample. It demonstrates that CMYK is supported. However, I am after the ability to use Spot Colours such as Pantone. It allows you to specify the colour by an (arbitrary) colour name such as “my own red” that gets interpreted by the printer. Some PDF librarties have spot colour support, iText for instance.
Regards,
Jan
Hi Jan,
Yes, that’s what I need - support for spot colors in the .NET environment.
Regards,
Jan
Hi Jan,