API Documentation > CorelDRAW > 2025-v26 > PDFVBASettings > IPDFVBASettings
PDFVBASettings.ColorMode property
Specifies the color mode for the document
Syntax:
Property Get ColorMode() As pdfColorMode
Property Let ColorMode(ByVal Value As pdfColorMode)
Remarks:
The ColorMode property specifies the color mode, specified as pdfColorMode, for the objects in a PDF file. The following ccode example publishes the active document to PDF. All objects are exported by using the RGB color model, and the color profile of the composite printer is applied. [code] Sub Test() With ActiveDocument.PDFSettings ColorMode = pdfRGB UseColorProfile = True ColorProfile = pdfCompositeProfile End With ActiveDocument.PublishToPDF "C:\MyDocument.pdf" End Sub [/code]