You can use the following macro (recorded):
ActiveDocument.ExportAsFixedFormat _
OutputFileName:=Replace(Replace(ActiveDocument.FullName,
".docx", ".pdf"), ".doc", ".pdf"), _
ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, _
OptimizeFor:=wdExportOptimizeForOnScreen, _
Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, _
KeepIRM:=True, CreateBookmarks:=wdExportCreateHeadingBookmarks, _
DocStructureTags:=True, BitmapMissingFonts:=False,
UseISO19005_1:=False
You can also use the following to do the same for all open documents:
Dim oDoc As Document
For Each oDoc In Documents
With oDoc
.Activate
.ExportAsFixedFormat _
OutputFileName:=Replace(Replace(oDoc.FullName, ".docx", ".pdf"),
".doc", ".pdf"), _
ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=False, _
OptimizeFor:=wdExportOptimizeForOnScreen, _
Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, _
KeepIRM:=True, CreateBookmarks:=wdExportCreateHeadingBookmarks, _
DocStructureTags:=True, BitmapMissingFonts:=False,
UseISO19005_1:=False
End With
Next oDoc
HTH,
Dave