AutomationFlowsWeb Scraping › Convert PDF to Png with Pdf.co API (multi-page Support)

Convert PDF to Png with Pdf.co API (multi-page Support)

ByLudwig @ludwig on n8n.io

This workflow automatically converts each page of a multi-page PDF into high-quality PNG images. It uses the PDF.co API in the background to process the PDF and generate individual images for every page. The entire process is streamlined, making it ideal for converting documents…

Event trigger★★★★☆ complexity25 nodesHTTP RequestCompression
Web Scraping Trigger: Event Nodes: 25 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #3847 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "59YfV0tNnKG7OHDN",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Page2Image: Convert PDF to PNG Workflow (Multi-Page Support)",
  "tags": [],
  "nodes": [
    {
      "id": "957ca7aa-d8db-4685-8e43-c20ac64f4435",
      "name": "Pass through binary",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        340
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1a7ce4da-1335-4fa3-9c85-4408ce385c1b",
      "name": "Get Presigned Upload URL (PDF.co)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8a3d12d3-af7e-4e86-8790-2419086b3583",
      "name": "Combine binary and json data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1080,
        460
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "03711958-11ec-4d92-b4fe-9ac57ba341c8",
      "name": "Upload PDF to Presigned URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "54776fcc-ab13-49ef-96db-69cc7fdff0e0",
      "name": "Strip binary data",
      "type": "n8n-nodes-base.set",
      "position": [
        1280,
        340
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "9e866bed-a711-4e59-b57c-fae582e0c8ef",
      "name": "Combine data",
      "type": "n8n-nodes-base.merge",
      "position": [
        1480,
        460
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "78ba97cb-ac34-456c-9234-50922301787e",
      "name": "Convert PDF to PNG (PDF.co)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2300,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2f9e9568-a73e-40df-b9f8-89b23550b9b3",
      "name": "Download PNG from PDF.co",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2540,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "61f124ac-c34c-43d3-b517-78e97afb5beb",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -340,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f71f46dc-4b85-43f1-96de-c660cbd27a35",
      "name": "Split multipage PDF files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1700,
        460
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "197f2385-a74b-40d5-8064-bf3f95b0a3f0",
      "name": "Compress into zip file",
      "type": "n8n-nodes-base.compression",
      "position": [
        2100,
        360
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "68b14a2d-22b6-4652-bf47-da944f66d212",
      "name": "Combine binaries",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2760,
        580
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "194c9b65-a729-4cb9-89f5-411ac72c6b13",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a33039c-e3a8-4eef-874a-5ef724195b26",
      "name": "GET example PDF files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -140,
        480
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "183a90a2-9f68-47de-ad2a-47f31dcd1a7c",
      "name": "Extract PDF links",
      "type": "n8n-nodes-base.html",
      "position": [
        60,
        480
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a0753106-6a64-4b14-8086-bed9db731670",
      "name": "Split links into items",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        260,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "afad6a91-312a-4b5d-9452-94855ed0e369",
      "name": "Use two relevant PDF examples",
      "type": "n8n-nodes-base.limit",
      "position": [
        460,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8f4f43e1-4dd8-4f40-b498-6b20a7eff155",
      "name": "Download example PDF Files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        480
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "739002d5-8cf6-4db6-9056-10616d570b79",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e7ae005f-9c78-48c7-83cf-2f85d0b75df6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "501a498a-d8e3-4e79-8124-05735ac161af",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b048391c-3394-4e07-a600-03b0b5a8d290",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f4b5d608-94ea-4dc8-b884-b12da1fe3491",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "766ce5ca-e0bc-442b-b1b5-ada4fe3e9d08",
      "name": "Split out urls",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2100,
        580
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6a7a0dfd-71bd-4047-a48a-3bbab131e175",
      "name": "Loop over pdf files",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1920,
        460
      ],
      "parameters": {},
      "typeVersion": 3
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "822977c6-1c42-4db5-832e-fa39ba3d3571",
  "connections": {
    "Combine data": {
      "main": [
        [
          {
            "node": "Split multipage PDF files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split out urls": {
      "main": [
        [
          {
            "node": "Convert PDF to PNG (PDF.co)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine binaries": {
      "main": [
        [
          {
            "node": "Loop over pdf files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF links": {
      "main": [
        [
          {
            "node": "Split links into items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Strip binary data": {
      "main": [
        [
          {
            "node": "Combine data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop over pdf files": {
      "main": [
        [
          {
            "node": "Compress into zip file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Split out urls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pass through binary": {
      "main": [
        [
          {
            "node": "Combine binary and json data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET example PDF files": {
      "main": [
        [
          {
            "node": "Extract PDF links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split links into items": {
      "main": [
        [
          {
            "node": "Use two relevant PDF examples",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PNG from PDF.co": {
      "main": [
        [
          {
            "node": "Combine binaries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split multipage PDF files": {
      "main": [
        [
          {
            "node": "Loop over pdf files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download example PDF Files": {
      "main": [
        [
          {
            "node": "Pass through binary",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Presigned Upload URL (PDF.co)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert PDF to PNG (PDF.co)": {
      "main": [
        [
          {
            "node": "Download PNG from PDF.co",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload PDF to Presigned URL": {
      "main": [
        [
          {
            "node": "Combine data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Combine binary and json data": {
      "main": [
        [
          {
            "node": "Upload PDF to Presigned URL",
            "type": "main",
            "index": 0
          },
          {
            "node": "Strip binary data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Use two relevant PDF examples": {
      "main": [
        [
          {
            "node": "Download example PDF Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Presigned Upload URL (PDF.co)": {
      "main": [
        [
          {
            "node": "Combine binary and json data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "GET example PDF files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow automatically converts each page of a multi-page PDF into high-quality PNG images. It uses the PDF.co API in the background to process the PDF and generate individual images for every page. The entire process is streamlined, making it ideal for converting documents…

Source: https://n8n.io/workflows/3847/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

Workflow 1621. Uses httpRequest, compression. Event-driven trigger; 6 nodes.

HTTP Request, Compression
Web Scraping

This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t

Execute Command, Read Write File, HTTP Request +3
Web Scraping

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.

HTTP Request, GitHub, Stop And Error +1
Web Scraping

[](https://youtu.be/c7yCZhmMjtI)

HTTP Request, GitHub, Stop And Error +1
Web Scraping

This automation organizes your n8n workflows files into categorizes (Active, Template, Done, Archived) and uploads them directly to a categorized Google Drive folders. It is designed to help users man

Google Drive, HTTP Request, Time Saved