Dear spirepap,
Thanks for your feedback.
Sorry that I forgot to tell you that the code I provided is to create spot color. According your description, you want the path name and CMYK, but there is no that name statement for path in PDF, we suppose you want spot color which may meet your requirement.
And there is code about CMYK for your reference.
- Code: Select all
PdfDocument pdfdoc = new PdfDocument();
PdfPageBase page = pdfdoc.Pages.Add();
pdfdoc.ColorSpace = PdfColorSpace.CMYK;
PdfSolidBrush brush = new PdfSolidBrush(new PdfRGBColor(0, 0.5f, 0.25f, 0));
page.Canvas.DrawLine(new PdfPen(brush), new PointF(100, 100), new PointF(300, 100));
pdfdoc.SaveToFile("SetCMYKColor.pdf", FileFormat.PDF);
If there is any question, welcome to get it back to us.
Sincerely,
Betsy
E-iceblue support team