• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

Is there a way to save a Word Document Object as a .pdf?

I have the saveas pdf add-on installed.  I just need the syntax - particularly and enumerated constants (they are so hard to find).
0
athayes
Asked:
athayes
1 Solution
 
leonov_alexCommented:

ActiveDocument.ExportAsFixedFormat OutputFileName:= _
    "C:\Users\Safe\Desktop\hkjhkdjhgkjdfgh.pdf", ExportFormat:= _
    wdExportFormatPDF, OpenAfterExport:=True, OptimizeFor:= _
    wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
    Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
    CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
    BitmapMissingFonts:=True, UseISO19005_1:=False
ChangeFileOpenDirectory "C:\Users\Safe\Desktop\"

Open in new window

0
 
athayesAuthor Commented:
Just like downtown; but, it certainly wouldn't have been my first guess.

Thanks!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now