Hello,
I would like to know if there is a possibility to convert a PDF that is RGB into one with CMYK using PDFSharp in C#.
I'm already using PDFSharp for setting trim margins and the above mentioned functionality would save alot of time.
I've already tried something like this, but the new PDF is still in RGB
Code:
PdfDocument pdftest = PdfReader.Open(filename, PdfDocumentOpenMode.Import);
pdftest.Options.ColorMode = PdfColorMode.Cmyk;
PdfDocument oPDFNew = new PdfDocument();
PdfPage page1 = pdftest.Pages[0];
oPDFNew.AddPage(page1);
oPDFNew.Options.ColorMode = PdfColorMode.Cmyk;
oPDFNew.Save(filename2);
Thanks for your help