EVO HTML to PDF converter generates PDF documents in RGB color space but documents typography might require in certain conditions to have documents in other color spaces like CMYK or Grayscale.

When the ColorSpace property of the PdfConverter..::..PdfDocumentOptions object is set with the appropriate value, the converter can generate PDF documents in CMYK or Grayscale color spaces. The Document class has the Document..::..Document(ColorSpace) constructor which allows you to create documents in CMYK or Grayscale color spaces.

Code Sample - Creating PDF Documents in CMYK and Grayscale Color Spaces

C# Copy imageCopy
// create the PDF converter
PdfConverter pdfConverter = new PdfConverter();
// setup to generate a PDF document in CMYK color space
pdfConverter.PdfDocumentOptions.ColorSpace = ColorSpace.CMYK;

// create the PDF converter
PdfConverter pdfConverter = new PdfConverter();
// setup to generate a PDF document in Grayscale color space
pdfConverter.PdfDocumentOptions.ColorSpace = ColorSpace.Gray;

//create a PDF document in CMYK color space
Document document = new Document(ColorSpace.CMYK);

//create a PDF document in Grayscale color space
Document document = new Document(ColorSpace.Gray);

See Also

Reference

Other Resources