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
Prerequisite component: Launch Word
Use this component to export a Word document to a PDF file.
2. Inputs
For details about each input, see the help information in the component panel of the visual editor.
3. Outputs
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
In the
Opened Word Objectfield, select v_word_obj_1, which is the output of the prerequisite Launch Word component.In the Save PDF to field, enter "C:\test.pdf".
In the If a file with the same name exists at the destination path field, select Overwrite.
Default values for advanced options
4.2. Example execution result
None
5. Flow creation example
Setup flow
Use the Launch Word component to open a specified Word file.
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.