PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Convert RGB PDF to CMYK https://forum.pdfsharp.net/viewtopic.php?f=2&t=4078 |
Page 1 of 1 |
Author: | kernig [ Fri Jan 03, 2020 3:37 pm ] |
Post subject: | Convert RGB PDF to CMYK |
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 |
Author: | TH-Soft [ Sat Jan 04, 2020 1:13 pm ] |
Post subject: | Re: Convert RGB PDF to CMYK |
Hi! kernig wrote: pdftest.Options.ColorMode = PdfColorMode.Cmyk; This applies to new content you add to pages using XGraphics objects.PDFsharp does not convert existing pages to the other format. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |