Export a Word document to PDF

更新时间:
复制 MD 格式

This document provides an example of how to use the Word component in the Alibaba Cloud Robotic Process Automation (RPA) visual editor.

1. Component description

Note

Prerequisite component: Launch Word

Use this component to export a Word document to a PDF file.

2. Inputs

Note

For details about each input, see the help information in the component panel of the visual editor.

3. Outputs

Note

For details about each output, see the help information in the component panel of the visual editor.

4. Component usage example

4.1. Configuration example

  1. In the Opened Word Object field, select v_word_obj_1, which is the output of the prerequisite Launch Word component.

  2. In the Save PDF to field, enter "C:\test.pdf".

  3. In the If a file with the same name exists at the destination path field, select Overwrite.

  4. Default values for advanced options

4.2. Example execution result

None

5. Flow creation example

Setup flow

  1. Use the Launch Word component to open a specified Word file.

  2. Use the Export Word to PDF component to export the specified Word file as a PDF and save it to a specified path.

Execution result

When the flow runs successfully, the specified Word document is automatically exported as a PDF file and saved to the specified path.