PPT parsing

Updated at:

The PPT parsing operator parses selected PPT files, extracts information such as text and images, and generates Markdown. Documents in .ppt format are first converted to .pptx format before being parsed. This topic describes how to configure the PPT parsing operator.

Prerequisites

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

  • The workflow is created. For more information, see or Create and manage workflows.

Permissions

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

Supported file formats

The PPT parsing operator supports files in the following formats: .ppt and .pptx.

Procedure

  1. On the Dataphin homepage, choose Develop > Data Development from the top menu bar.

  2. On the Develop page, choose Project from the top menu bar.

  3. In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list, click the target workflow to open its canvas. From the Operator Library on the left, drag the PPT parsing operator to the canvas. Then, configure the parameters in the PPT parsing panel on the right.

    Parameter

    Description

    Step name

    Enter a name for the operator. The name can contain any character and must be 256 characters or less.

    Input configuration

    Dataset

    Select the dataset to process. You can select only a Hybrid Dataset. After you select a dataset, you must also select its Version. By default, the first version in ascending order is selected.

    If this operator is downstream from another operator, the dataset selected here is typically the same as the output dataset of the upstream operator.

    Input field

    The storage path of the PPT file. You must select a source field from the input dataset. Only fields for which the Is URL parameter is set to Yes are available.

    Filter condition (Optional)

    Enter a filter condition using an SQL expression (the part of a query that follows the WHERE clause). Global system variables, such as ${bizdate}, are supported.

    Operator configuration

    Model-assisted correction

    When disabled, the operator uses only the built-in model for layout analysis and table extraction. When enabled, if the built-in model produces poor parsing results (such as layout misalignment), a large model automatically corrects the output to improve parsing accuracy.

    Image content understanding

    When enabled, a large model analyzes the content of images in the PPT, which are then replaced with text descriptions in the output Markdown. You must also provide an image understanding prompt of up to 2,000 characters.

    If a slide contains multiple images, they are parsed sequentially based on their order of appearance.

    Model

    You can configure this parameter only when Model-assisted correction or Image content understanding is enabled. Both features share the same model. You can select only models that are Enabled in Intelligent Application Management > Model Configuration and whose model type includes Text or Vision (Images and Videos).

    Note

    Output configuration

    Dataset

    You can select a Source Dataset or Other Datasets as the output. If the source is a table dataset, the output defaults to Other Datasets.

    If you select Other Datasets, you must also specify a Hybrid Dataset and its Version as the output dataset. By default, the first version in ascending order is selected. You can also select other versions of the source dataset.

    If you select Source Dataset, the operator writes the output metadata to the table of the corresponding source dataset version.

    File output path

    Enter a directory name. If the directory does not exist, it is created.

    • The naming format for the parsed text content is ${PPTFileName+IncrementingNumberFrom1}.md.

    • The operator stores parsed images in a dedicated folder.

    Include image links in output markdown

    If you select Yes, parsed images are replaced with links to their storage locations. If you select No, image links are removed.

    Loading policy

    If the metadata table of the selected output dataset has a primary key, update on primary key conflict is selected by default. If no primary key exists, Append data is selected by default.

    • Append data: Appends new data to the destination table. The operation fails if a primary key or constraint conflict occurs.

    • Update on primary key conflict: If a primary key or constraint conflict occurs, the operator deletes the existing row with the duplicate primary key and then inserts the new data.

    • Overwrite: Deletes all existing data in the target table before writing the new data.

    Note

    If the output dataset is set to Source Dataset, Update on primary key conflict is the only supported loading policy.

    Field mapping

    The PPT parsing operator outputs the following fields:

    • markdown_url: The storage path of the Markdown file.

    • markdown_content: The content of the Markdown file. This field is optional. If the content is very long, avoid mapping this field to the output dataset.

    • image_folder_url: The storage path of the image folder.

    By default, the operator's output fields are mapped to fields with the same names in the output dataset. You can manually select target fields for custom mapping. You can also pass through fields from the source dataset to the target dataset. You can manage field mappings in the following ways:

    • Add output field: Click to add a new, empty field mapping row. This feature is available only when Other Datasets is selected as the output dataset.

    • Batch mapping: Click to choose between batch manual mapping, mapping by name, or mapping by row. This feature is available only when Other Datasets is selected as the output dataset.

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

  4. After you finish the configuration, click Save in the top menu bar of the canvas.

    After configuring a single operator, you can continue to build a complete workflow by connecting upstream or downstream operators.

Appendix: PPT to Markdown mapping

PPT element

Markdown output

Notes

Slide title

# Slide n: Title content

Uses the content of the title placeholder.

Subtitle

## Subtitle content

Uses the content of the subtitle placeholder.

Text box body

Normal text paragraph.

The operator orders multiple text boxes visually from top to bottom and left to right.

Bold/Italic

**Bold**/*Italic*

Preserves inline formatting.

Ordered/unordered lists

1./-

Supports multi-level nested indentation.

Tables

Markdown table

The operator expands merged cells.

Embedded images

![image](oss://path)

Extracts the original image to OSS.

Charts

The operator prioritizes extracting the underlying data and converting it into a table and a rendered screenshot.

If extraction fails, the operator renders only a screenshot.

SmartArt

Extracts text nodes and converts them into a hierarchical list.

The operator ignores the graphic layout.

Hyperlinks

[Text](URL)

Preserves the link destination.

Speaker notes

> **Note**: Content

Extracted by default. This feature is always enabled.

Embedded audio/video

[Embedded media: audio/video]

The operator cannot extract this content directly. Instead, it inserts a placeholder description.

Blank slides

Skipped and not converted.

No corresponding section is generated.

Animated elements

The operator outputs content sequentially based on the order of appearance of the elements.

The operator fully parses all elements that appear sequentially on a single slide through animation, such as images, tables, and text.