PPT Document Conversion

Updated at:

The PPT Document Conversion operator converts selected PowerPoint files. It can split a file by page into PNG images or individual PPT documents, or convert the entire file into a PDF.

Prerequisites

  • To use the workflow feature, you must first purchase the unstructured data feature for your instance.

  • You have created a workflow. For more information, see Create and manage a workflow.

Permissions

In a Basic project, project administrators, developers, analysts, and custom project roles with the Dataset - Use permission can use all datasets in the project as the input and output datasets for the operator.

Supported file formats

The PPT Document Conversion operator supports the following file formats: .ppt and .pptx.

Procedure

  1. In the top navigation bar of the Dataphin homepage, choose Development > Data Development.

  2. On the Development page, select a project from the top menu bar.

  3. In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list, click your target workflow to open its canvas. From the Operator Library on the left, drag the PPT Document Conversion operator onto the canvas. In the PPT Document Conversion panel that appears on the right, configure the following parameters.

    Parameter

    Description

    Step name

    Enter a name for the operator. The name can contain any characters and be up to 256 characters long.

    Input configuration

    Dataset

    Select the dataset to process. You can only select a hybrid dataset. After selecting a dataset, you must also select a version. By default, the system selects the first version of the dataset in ascending order.

    When used as a downstream operator, this dataset is typically the output of the upstream operator.

    Input field

    Select a field from the input dataset that contains the storage path of the PowerPoint file. You can only select fields for which the Is URL parameter is set to Yes.

    Filter condition (Optional)

    Use SQL syntax to specify a filter condition. You only need to enter the condition that follows the WHERE clause. You can use system global variables, such as the business date ${bizdate}.

    Operator configuration

    Conversion mode

    Select a conversion mode: Convert to PNG by page, Split PPT by page, or Convert entire file to PDF.

    Output configuration

    Dataset

    When conversion mode is set to Convert entire file to PDF, you can select source dataset or other dataset. When conversion mode is set to Convert to PNG by page or Split PPT by page, you must select other dataset.

    When you select other dataset, you must also specify a hybrid dataset and its version as the output dataset. By default, the system selects the first version of the dataset in ascending order. You can also select a different version of the source dataset.

    When you select a source dataset, the metadata generated by the operator is written to the metadata table for the same version of the source dataset.

    File output path

    Enter the name of the output directory. If the directory does not exist, the system creates it automatically.

    Loading strategy

    The default strategy is update on primary key conflict if the output dataset's metadata table has a primary key; otherwise, the default is append data.

    • append data: Appends new data directly to the target table. An error occurs if a primary key or constraint conflict is found.

    • update on primary key conflict: If a primary key or constraint conflict occurs, the system deletes the entire row containing the conflicting key before it inserts the new data.

    • overwrite: Deletes all data from the target table before writing the new data.

    Note

    When the output dataset is set to source dataset, the only supported loading strategy is update on primary key conflict.

    Field mapping

    The PPT Document Conversion operator outputs a fixed set of fields based on the selected conversion mode:

    • Convert to PNG by page and Split PPT by page:

      • source_file_url: Storage URL of the original PowerPoint file.

      • source_slide_sequence: The sequence number of the original slide in the PowerPoint file.

      • generation_file_url: Storage URL of the generated file.

      • generation_file_id: A unique ID for the generated file, which allows downstream operators to uniquely identify it.

    • Convert entire file to PDF:

      generation_file_url: Storage URL of the generated file.

    By default, the operator maps its output fields to fields with the same name in the output dataset. You can also manually select target fields for custom mapping. Additionally, you can map pass-through fields from the source dataset to the target dataset. You can manage field mapping in the following ways:

    • Add output field: Click to add a new, empty field mapping row. You can use this function only when the output dataset is set to other dataset.

    • batch mapping: Click to choose between batch manual mapping, map by name, or map by position. You can use this function only when the output dataset is set to other dataset.

    • Delete mapping: Click the Delete icon to remove the corresponding field mapping row. You cannot delete the mapping for the operator's fixed output fields.

  4. After finishing the configuration, click Save in the top menu bar of the canvas to save your settings.

    After configuring an operator, you can continue to build your workflow by adding upstream or downstream operators.