Skip to main content

Extract specific pages from PDFs with CustomJS API

Workflow preview

Workflow preview
100%
Extract specific pages from PDFs with CustomJS API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template shows how to extract selected pages from a generated PDF with the PDF Toolkit by www.customjs.space. [@custom js/n8n nodes pdf toolkit](https://www.np...

Best for

  • Document Extraction automation workflows
  • beginner n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @custom-js/n8n-nodes-pdf-toolkit.extractpages, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by CustomJS.

Original n8n.io source

1.1 Workflow description

Title
Extract specific pages from PDFs with CustomJS API
Workflow name
Extract specific pages from PDFs with CustomJS API

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

@custom-js/n8n-nodes-pdf-toolkit

Notice

Community nodes can only be installed on self-hosted instances of n8n.

What this workflow does

  • Downloads each PDF using an HTTP Request.
  • Extract pages from the PDF file as needed.

Requirements

  • Self-hosted n8n instance
  • CustomJS API key for extracting PDF files.
  • PDF files to be merged to be converted into a PDF

Workflow Steps:

  1. Manual Trigger:

    • Runs with user interaction.
  2. Download PDF File:

    • Pass urls for PDF files to merge.
  3. Extract Pages from PDF:

    • Extract selected pages from a generated PDF

Usage

Get API key from customJS

  • Sign up to customJS platform.
  • Navigate to your profile page
  • Press "Show" button to get API key

Set Credentials for CustomJS API on n8n

Copy and paste your API key generated from CustomJS here.

Design workflow

  • A Manual Trigger for starting workflow.
  • HTTP Request Nodes for downloading PDF files.
  • Extract Pages from PDF.

You can replace logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from webhook. Simply replace Manual Trigger and Write to Disk nodes.

Perfect for

  • Taking a note of specific pages from PDF files.
  • Splitting PDF file into multiple parts.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Extract Pages From PDF1

Type / Role
@custom-js/n8n-nodes-pdf-toolkit.ExtractPages - ExtractPages
Config choices
Version 1

Block 3 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Extract specific pages from PDFs with CustomJS API
Complexity beginner
Nodes 3
Categories Document Extraction
Author CustomJS
Published 05 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3872/3872.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract specific pages from PDFs with CustomJS API do?

This n8n template shows how to extract selected pages from a generated PDF with the PDF Toolkit by www.customjs.space. [@custom js/n8n nodes pdf toolkit](https://www.np...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.