Save PDF RGB Color Mode

Hi Team,

How do I save the PDF in RGB mode? I attempted to convert the PDF using PdfSaveOptions, but it seems that only three modes(GRAYSCALE, length, and NORMAL) are available. Could you please suggest any alternative methods?

PdfSaveOptions opts = new PdfSaveOptions();
opts.getDownsampleOptions().setDownsampleImages(false);
opts.setColorMode(ColorMode.NORMAL);
dstDoc.save(bookmarkname.pdf,opts);

Regards,
Mahesh

@Mahi39 When ColorMode.GRAYSCALE all colors are converted to grayscale. In your case you should use ColorMode.NORMAL, in this case PDF is rendered as RGB without any conversions of color effects.