Examples:
The following VBA example applies the default settings to publish the active document to PDF. All objects are published using the CMYK color model.
Sub Test()
With ActiveDocument.PDFSettings
.Reset
.ColorMode = pdfCMYK
End With
ActiveDocument.PublishToPDF "C:\MyDocument.pdf"
End Sub