Updated on 2024-01-17 GMT+08:00

Inserting Watermarks

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

  • If you injected an invisible watermark, extract the watermark from the target file using tools. For details, see Extracting Watermarks.
  • 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 pane on the left, click and choose Security & Compliance > Data Security Center.
  4. In the navigation pane, choose Data Privacy 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

    Example Value

    Task Name

    Enter the watermark ingestion task name.

    Test_DSC

    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.

    Visible watermark and invisible watermarks

    Target Path

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

    -

    Configure Visible Watermark

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

    Set Text, Font Size, Font Angle, and Transparency as required.

    • Text: DSC
    • Font size: 60
    • Font angle: 90
    • Transparency: 100

    Configure Invisible Watermark

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

    Set Text as required.

    Text: Test

    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.

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 pane on the left, click and choose Security & Compliance > Data Security Center.
  4. In the navigation pane, choose Data Privacy 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.

    Figure 3 Adding a file

  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

    Example Value

    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.

    Visible

    Configure Visible Watermark

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

    Set Text, Font Size, Font Angle, and Transparency as required.

    • Text: DSC
    • Font size: 60
    • Font angle: 90
    • Transparency: 100

    Configure Invisible Watermark

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

    Set Text as required.

    Text: Test

    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.

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.