Sub Test() ActiveDocument.PDFSettings.EPSAs = pdfPreview ActiveDocument.PublishToPDF "C:\MyDocument.pdf"End Sub