Rendering PDF in CMYK

Q: Is it possible to export a PDF page to a CMYK jpeg?

see in the examples how to export to Tiff. What formats can I export using CMYK?

A: The only built-in export format with CMYK support support is TIFF. PNG and JPEG don’t support CMYK (actually JPEG could, but this is not consistently implemented in across different apps). You can also obtain RAW CMYK bytes (with pdfdraw.GetBotmap()) and serialize to a desired format using a third party API.