The UseColorProfile property determines whether a color profile is used when publishing to PDF. You can use the PDFVBASettings.ColorProfile property to specify the color profile.
Examples:
The following code example publishes the active document to PDF. All objects are exported using the RGB color model, and the color profile of the composite printer is applied.
Sub Test()
With ActiveDocument.PDFSettings
.ColorMode = pdfRGB
.UseColorProfile = True
.ColorProfile = pdfCompositeProfile
End With
ActiveDocument.PublishToPDF "C:\MyDocument.pdf"
End Sub