Spot colors

Are spot colors supported in Pdf.Kit?

Regards,
Jan

Hi Jan,


Thanks for your interest in our products.

I am working over this query and will get back to you soon. We are sorry for this inconvenience.

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,


Before I comment further, I have noticed that you have inquired the support of Spot colors in Aspose.Pdf.Kit. Do you need support for Spot colors in Aspose.Pdf for .NET (which contains legacy Aspose.Pdf.Kit for .NET under Aspose.Pdf.Facades namespace) or you need this support in Aspose.Pdf.Kit for Java (its still being used as a separate product). Please confirm as it will help us in answering this query in more appropriate manner.

PS, In my earlier reply, I have shared the information from Aspose.Pdf for .NET perspective.

Yes, that’s what I need - support for spot colors in the .NET environment.

Regards,
Jan

Hi Jan,


Thanks for your patience and sorry for replying you late.

I am afraid currently Aspose.Pdf for .NET does not support Spot colors i.e. PanTone. Nevertheless for the sake of implementation, I have logged this requirement as PDFNEWNET-34163 in our issue tracking system. We will further look into the details of this requirement and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for your inconvenience.