Hi,
Is it possible to specify an ICC color profile for a PDF.
I would like the resulting PDF to be CMYK using the Fogra 39 ICC profle.
Thanks
PdfDocument pdf = new PdfDocument();
//Create one page
PdfPageBase page = pdf.Pages.Add();
int x = 200;
int y = 300;
int width = 200;
int height = 120;
pdf.ColorSpace = PdfColorSpace.CMYK;
PdfSolidBrush brush = new PdfSolidBrush(new PdfRGBColor(1f, 0, 0, 0));
PdfSolidBrush brush2 = new PdfSolidBrush(new PdfRGBColor(0, 0, 0, 1f));
//Draw a filled rectangle
page.Canvas.DrawRectangle(new PdfPen(brush2), brush, new Rectangle(new Point(x, y), new Size(width, height)));
pdf.SaveToFile("result.pdf", FileFormat.PDF);