Click or drag to resize

Select Color Space

The ColorSpace property sets the color space - RGB (the default), CMYK or Gray - of the graphics the library draws in the generated document: the text, lines and backgrounds of the headers and footers, and the elements added later to the Document returned by the converter. The content rendered from the HTML page keeps the RGB colors of the page.

pdfConverter.ColorSpace = ColorSpace.CMYK;

For a document whose whole content is in CMYK, for printing, produce it as PDF/X-1a: with PdfStandardSubset set to Pdf_X_1a, the colors of the HTML content are converted to CMYK too. See PDF standards.

pdfConverter.ColorSpace = ColorSpace.CMYK;
pdfConverter.PdfStandardSubset = PdfStandardSubset.Pdf_X_1a;