Examples:
The following VBA example specifies options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while Open Prepress Interface (OPI) links and spot colors are not maintained.
Sub Test()
With ActiveDocument.PDFSettings
ComplexFillsAsBitmaps = True
Halftones = True
MaintainOPILinks = False
Overprints = True
SpotColors = False
End With
ActiveDocument.PublishToPDF "C:\MyDocument.pdf"
End Sub