Updated on 2024-10-09 GMT+08:00

Injecting Watermarks to Documents

On the DSC console, you can insert custom watermarks in PDF, PPT, Word, and Excel documents. This section describes how to insert customized watermarks into local files or cloud files (files stored in the OBS bucket).

Prerequisites

Constraints

  • The maximum size of a PDF or Word file is 50 MB.
  • The maximum size of an Excel file is 70 MB.
  • The maximum size of a PPT file is 20 MB.

Creating a Watermark Injection Task for Files in an OBS Bucket

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation tree on the left, click . Choose Security & Compliance > Data Security Center .
  4. In the navigation pane, choose Data Asset Protection > Document Watermarking.
  5. Click Create Task in the upper left corner of the task list to create a task.

    Figure 1 Creating a task

  6. Set the parameters shown in Table 1.

    Table 1 Task parameters

    Parameter

    Description

    Task Name

    Enter the watermark ingestion task name.

    Select File

    Click Add File. In the right pane, select the name of the bucket to which you want to add a watermark. In the left pane, select a file. You can select multiple files.

    Watermark Type

    Both visible and invisible watermarks are supported. You can select multiple values.

    • Visible watermark: The watermark text is displayed in the file, as shown in Preview Visible Watermark in Figure 2.
    • Invisible watermark: The watermark text is invisible and needs to be extracted using tools. For details about how to extract an invisible watermark, see Extracting Watermarks from Documents.

    Target Path

    Click selecting a file path, and select the watermarked file.

    Configure Visible Watermark

    Set the Watermark Type to Visible Watermark. Then, drag the slider to set the Text, Font Size, Font Angle, Sparseness, and Transparency.

    Configure Invisible Watermark

    This parameter is mandatory when Watermark Type is set to Invisible.

    Set Text as required.

    Figure 2 Inserting Watermarks

  7. Click OK. A message is displayed in the upper right corner, indicating that the watermark injection task is created successfully.
  8. In the watermark task list, click next to the task name to view the task running status.

    • If the injected watermark is a visible watermark, click Download to obtain the watermark file.
    • If you injected an invisible watermark, extract the watermark from the target file using tools. For details, see Extracting Watermarks from Documents.
      Figure 3 Injecting watermarks to files

Creating a Local File Data Injection Task

  1. Log in to the management console.
  2. Click in the upper left corner and select a region or project.
  3. In the navigation tree on the left, click . Choose Security & Compliance > Data Security Center .
  4. In the navigation pane, choose Data Asset Protection > Document Watermarking.
  5. Click the Local File tab. The Watermark Injection page is displayed.
  6. Click Select File, and select the file to which the watermark is to be injected.
  7. After the file is uploaded, configure related parameters, as shown in Figure 4. Table 2 describes the related parameters.

    Table 2 Watermarking parameters

    Parameter

    Description

    Watermark Type

    Both visible and invisible watermarks are supported. You can select multiple values.

    • Visible watermark: The watermark text is displayed in the file, as shown in Preview Visible Watermark in Figure 4.
    • Invisible watermark: The watermark text is invisible and needs to be extracted using tools. For details about how to extract an invisible watermark, see Extracting Watermarks from Documents.

    Configure Visible Watermark

    Set the Watermark Type to Visible Watermark. Then, drag the slider to set the Text, Font Size, Font Angle, Sparseness, and Transparency.

    Configure Invisible Watermark

    This parameter is mandatory when Watermark Type is set to Invisible.

    Set Text as required.

    Figure 4 Creating a local file data injection task

  8. After parameters are configured, click OK. The file with watermark injected is automatically downloaded to the specified path on the local PC.

    • If you injected a visible watermark, open the target file to view the watermark.
    • If you injected an invisible watermark, extract the watermark from the target file using tools. For details, see Extracting Watermarks from Documents.

Related Operations

Click next to the target watermark injection task name to view or download the status of the OBS file watermark injection task.
  • Running: You can view the progress of the watermark ingestion task.
  • Finished: You can click Download in the Operation column to download the watermarked OBS bucket file.
  • Failed: The watermark injection task fails to be executed. You can move the cursor to to view the failure cause.