Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Apr 13, 2022 2:20 pm

Hi,

I'm creating a shape defined as a Spot Color (as in your example).
I want the alternate color space to be RGB rather than CMYK as the result I get.
Is there a way to do so?

Thanks
Avinoam

avinoamK
 
Posts: 4
Joined: Wed Apr 13, 2022 2:16 pm

Thu Apr 14, 2022 8:39 am

Hello,

Thank you for your inquiry.
To help us investigate your issue quickly and efficiently, please provide the following information. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.
1) Your input PDF file (if any).
2) Your complete test code.
3) The way and tools you view the color space.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Sun Apr 24, 2022 1:06 pm

Hi,

I'm attaching the code I use, which was taken actually one-to-one from one of your code examples.
I also attach the resulted pdf file and a screen shot of the Acrobat+PitStop window that show me the resulted Alternate Color Space.

Thank you in advance
Avinoam

avinoamK
 
Posts: 4
Joined: Wed Apr 13, 2022 2:16 pm

Mon Apr 25, 2022 1:31 am

Hello Avinoam,

Thanks for your reply.
We have not received your code and files here or through the email. Did you send them to support@e-iceblue.com?

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Apr 25, 2022 4:56 pm

Hi,

I've attached the files t the topic, but just sent them also to the support email address

Thanks
Avinoam

avinoamK
 
Posts: 4
Joined: Wed Apr 13, 2022 2:16 pm

Tue Apr 26, 2022 3:20 am

Hello,

Thanks for sharing the information via email.
After careful investigation, we found that the spot color of our Spire.PDF is currently set to CMYK by default, and cannot be set externally. I have posted the feature to set the color space of spot colors to RGB to our Dev Team with issue number SPIREPDF-5132. They will investigate and confirm if it can be achieved. Once it is achieved in the future, we will let you know.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Tue Apr 26, 2022 6:43 pm

I see...
Thanks for the fast reply

Avinoam

avinoamK
 
Posts: 4
Joined: Wed Apr 13, 2022 2:16 pm

Wed Apr 27, 2022 2:29 am

Hello,

You're welcome.
As soon as there is any update, I will keep you informed.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Fri Feb 03, 2023 10:22 am

Hello,

Glad to inform that we just releasedSpire.PDF Pack(Hot Fix) Version:9.2.2 which supports setting the color space of spot colors to RGB, please download and refer to the sample code for testing.

Website link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/9.2.2
Code: Select all
PdfDocument pdf = new PdfDocument();
PdfPageBase page = pdf.Pages.Add();
PdfRGBColor c = Color.Purple;

//color space RGB
PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.R, c.G, c.B));
//color space CMYK
PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.C, c.M, c.Y, c.K));
//color space Grayscale
PdfSeparationColorSpace cs = new PdfSeparationColorSpace("MySpotColor", new PdfRGBColor(c.Gray));

PdfSeparationColor color = new PdfSeparationColor(cs, 1f);
PdfSolidBrush brush = new PdfSolidBrush(color);
page.Canvas.DrawPie(brush, 10, 30, 60, 60, 360, 360);
page.Canvas.DrawString("Tint=1.0", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(22, 100));
color = new PdfSeparationColor(cs, 0.5f);
brush = new PdfSolidBrush(color);
page.Canvas.DrawPie(brush, 80, 30, 60, 60, 360, 360);
page.Canvas.DrawString("Tint=0.5", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(92, 100));
color = new PdfSeparationColor(cs, 0.25f);
brush = new PdfSolidBrush(color);
page.Canvas.DrawPie(brush, 150, 30, 60, 60, 360, 360);
page.Canvas.DrawString("Tint=0.25", new PdfFont(PdfFontFamily.Helvetica, 10f), brush, new PointF(162, 100));
pdf.SaveToFile("SpotColorrgb.pdf");

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF