# Save Document as PDF

> `UiPath.Word.Activities.WordExportToPdf`

`UiPath.Word.Activities.WordExportToPdf`

## Description

Exports the Word document in PDF format. If a PDF file with the same name already exists in the specified location, the file is replaced when the automation is executed. This activity must be added inside a [Use Word File](https://docs.uipath.com/activities/other/latest/productivity/word-application-scope) activity.

## Configuring the activity

#### In the body of the activity

* **File path to save as** - Select Browse ![](https://dev-assets.cms.uipath.com/assets/images/activities/activities-image-browse_files-1431ef7d.png) next to the field, then browse to a folder where to create the PDF file, enter a name for the file, and select Save. Alternatively, you can select Plus on the right side of the field and then, from the menu, choose one of the available options to indicate the path of the PDF file to export to:

  + Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
  + ****Use Saved Value**** - Select a value in the form of a file path that you previously saved for later use in the project.
  + Text - Enter a file path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
  + **Ask when run** - Prompt for a file path when the project is executed.
  + **Open in Advanced Editor** - Enter a VB expression.

#### Properties panel

**Common**

* **DisplayName** - The name displayed for the activity in the Designer panel.

**Input**

* **File path** - See **File path to save as** in the body of the activity.

**Misc**

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.
