AutomationFlowsWeb Scraping › Extract Specific Pages From Pdfs with Customjs API

Extract Specific Pages From Pdfs with Customjs API

ByCustomJS @customjs on n8n.io

This n8n template shows how to extract selected pages from a generated PDF with the PDF Toolkit by www.customjs.space.

Event trigger★☆☆☆☆ complexity3 nodes@Custom Js/N8N Nodes Pdf ToolkitHTTP Request
Web Scraping Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #3872 — 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": "rLoXUoKSZ4a9XUAv",
  "name": "My workflow 6",
  "tags": [],
  "nodes": [
    {
      "id": "dad32e79-af45-4255-90d9-845a5357395a",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -580,
        920
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1cadea33-7c6a-4282-be84-e127fc7437c2",
      "name": "Extract Pages From PDF1",
      "type": "@custom-js/n8n-nodes-pdf-toolkit.ExtractPages",
      "position": [
        -140,
        920
      ],
      "parameters": {
        "pageRange": "2-3",
        "field_name": "=data"
      },
      "credentials": {
        "customJsApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a8554e6b-6e2d-4a26-909c-25e74e618480",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -360,
        920
      ],
      "parameters": {
        "url": "https://www.sldttc.org/allpdf/21583473018.pdf",
        "options": {}
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "82cbb24e-e907-419a-97d6-bdb577269927",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Extract Pages From PDF1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

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

About this workflow

This n8n template shows how to extract selected pages from a generated PDF with the PDF Toolkit by www.customjs.space.

Source: https://n8n.io/workflows/3872/ — 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

This n8n template demonstrates how to download multiple PDF files from public URLs and merge them into a single PDF using the PDF Toolkit from www.customjs.space.

HTTP Request, Read Write File, @Custom Js/N8N Nodes Pdf Toolkit
Web Scraping

Our KB Tool - Confluence KB is crafted to seamlessly integrate into the IT Ops AI SlackBot Workflow, enhancing the IT support process by enabling sophisticated search and response capabilities via Sla

Execute Workflow Trigger, HTTP Request
Web Scraping

For developers and organizations that need to protect PDF files with the password.

Read Write File, HTTP Request, Google Drive
Web Scraping

twenty-sync. Uses executeWorkflowTrigger, httpRequest. Event-driven trigger; 6 nodes.

Execute Workflow Trigger, HTTP Request
Web Scraping

This workflow illustrates how to use Perplexity AI in your n8n workflow.

HTTP Request