{
  "name": "Watermark and password-protect new Google Drive PDFs with Autype",
  "nodes": [
    {
      "id": "34427cf7-cbb9-4b7c-8a07-cdd0a6c8c11c",
      "name": "New PDF Uploaded to Drive",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        432,
        208
      ]
    },
    {
      "id": "64a1aa76-575d-441e-94de-9ac48e648c2e",
      "name": "Download PDF from Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        704,
        208
      ]
    },
    {
      "id": "c064c0b2-dedc-4622-baf6-5f1a5f8b125e",
      "name": "Upload PDF to Autype",
      "type": "n8n-nodes-autype.autype",
      "position": [
        976,
        208
      ]
    },
    {
      "id": "3980bc9a-5655-429c-9661-cac956aac28b",
      "name": "Add Watermark",
      "type": "n8n-nodes-autype.autype",
      "position": [
        1232,
        208
      ]
    },
    {
      "id": "ff4f32b4-c990-4989-a158-588ead63bb68",
      "name": "Save Watermarked PDF to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1504,
        208
      ]
    },
    {
      "id": "3b78ab54-9cd3-4bea-8869-23e3125c1231",
      "name": "Password-Protect PDF",
      "type": "n8n-nodes-autype.autype",
      "position": [
        1232,
        544
      ]
    },
    {
      "id": "dfef3221-c2bb-4999-91e1-c43d8aa7aeaa",
      "name": "Save Protected PDF to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1504,
        544
      ]
    },
    {
      "id": "5401ddbc-72b5-4bc8-b89a-39e764d8361f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -128
      ],
      "parameters": {
        "width": 520,
        "height": 780,
        "content": "## Automatically Watermark and Password-Protect New PDFs in Google Drive\n### When a new PDF is uploaded to a Google Drive folder, this workflow automatically creates two secure versions: one with a \"C"
      }
    },
    {
      "id": "94d57c82-1a80-4fbe-a3da-0b59e5e60846",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        64
      ],
      "parameters": {
        "width": 520,
        "height": 340,
        "content": "### 1. Trigger & Download\nThe Google Drive Trigger polls the watched folder every minute. When a new file appears, it downloads the PDF binary and uploads it once to Autype. The returned file ID is sh"
      }
    },
    {
      "id": "12cb2442-1221-4bfb-842d-08a4c6424e0a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        64
      ],
      "parameters": {
        "width": 508,
        "height": 292,
        "content": "### 2.1 Watermark & Save\nStamps a diagonal \"CONFIDENTIAL\" watermark on the uploaded PDF and saves the result back to Google Drive as `*-watermark.pdf`. Runs in parallel with branch 2.2."
      }
    },
    {
      "id": "9cada5de-f549-4d0a-8207-d27954ce4edc",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        416
      ],
      "parameters": {
        "width": 512,
        "height": 292,
        "content": "### 2.2 Protect & Save\nEncrypts the uploaded PDF with a user password (to open) and owner password (to edit), then saves as `*-protected.pdf` in the same folder. Runs in parallel with branch 2.1 — no "
      }
    }
  ],
  "connections": {
    "Add Watermark": {
      "main": [
        [
          {
            "node": "Save Watermarked PDF to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Password-Protect PDF": {
      "main": [
        [
          {
            "node": "Save Protected PDF to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload PDF to Autype": {
      "main": [
        [
          {
            "node": "Add Watermark",
            "type": "main",
            "index": 0
          },
          {
            "node": "Password-Protect PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF from Drive": {
      "main": [
        [
          {
            "node": "Upload PDF to Autype",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New PDF Uploaded to Drive": {
      "main": [
        [
          {
            "node": "Download PDF from Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Watermarked PDF to Drive": {
      "main": [
        []
      ]
    }
  }
}