Looks like it's just
sAIDocument->GetDocumentColorModel( &colorModel );
Thank you for the answer.
Let's imagine that you arbworking with a document in Rgb color mode, and open a second document in CMYK color mode. I need to be able to switch to whatever document and save it as a Pdf: currently, if I don't specify anything, my sdk export uses the latest set color mode in the application. Is it possible to specify the color mode while saving a document as a Pdf?
Unfortunately I don't have any experience with saving documents as PDF.