Saving a word doc to pdf

I have code that generates a word document, using vba/lotusscript.

I now want to be able to save the word file as a .pdf…

I found this :
objDoc.SaveAs2 “C:\Docs\MyDoc.pdf”, 17

but I don’t know how to write that as lotusscript

Subject: What is your office version?

What is your office version?

Only Office 2007 and newer versions supported “Save file as PDF”.

============

For Office 2016:

Set wrd = CreateObject(“Word.Application”)

wrd.Visible = True
wrd.Documents.Add

wrd.Selection.TypeText “Sample text”

Call wrd.ActiveDocument.ExportAsFixedFormat(“c:\temp\test.pfd”, 17)

Subject: Figured it out

objDoc.SaveAs filename, 17