Automate Web Page to PDF Conversion with n8n HTTP Request Node

Save hours by automatically converting any web page to PDF with n8n’s HTTP Request and File system nodes. This workflow authenticates conversion requests and saves PDFs locally with ease.
httpRequest
manualTrigger
readWriteFile
+1
Workflow Identifier: 2472
NODES in Use: Manual Trigger, HTTP Request, Read/Write Files from Disk, Sticky Note
Automate web page to PDF with n8n and HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow takes a web page URL as input and turns it into a PDF file saved on your local computer.
It fixes the common problem of manually saving web pages as PDFs, which can take much time and cause errors.
After running this, you get a clean PDF document saved automatically, with no manual downloading or formatting issues.


Tools and Services Used

  • n8n: Automation platform to set up and run the workflow.
  • ConvertAPI: Service to convert web pages to PDF via API.
  • Local File System: Location where PDF files are saved.
  • HTTP Query Authentication Credential in n8n: Used to securely connect to ConvertAPI.

How the Workflow Works (Inputs → Process → Outputs)

Inputs

  • A web page URL provided in the HTTP Request node.

Processing Steps

  1. The workflow starts when you manually trigger it using the Manual Trigger node.
  2. Then it sends the given URL in a POST request to ConvertAPI’s web-to-PDF endpoint using an HTTP Request node with authentication.
  3. The API converts the webpage to a PDF and returns the PDF data in binary form.
  4. The Read/Write Files from Disk node takes the binary data and writes it to a PDF file locally.

Outputs

  • A PDF file named as specified (e.g., “document.pdf”) saved on your disk.

Who Should Use This Workflow

This workflow is made for anyone needing to save web content as PDFs often without manual work.
It helps content managers, compliance officers, and anyone who wants consistent PDF files from web pages.

The user benefits by saving time, avoiding errors, and automating a repetitive task.


Beginner Step-by-Step: How to Start Using This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Inside the n8n editor, click on the menu and choose “Import from File.”
  3. Select the downloaded workflow file and import it.

Step 2: Add Required Credentials and Configure Settings

  1. Add your ConvertAPI API Key through n8n credentials by creating or updating an HTTP Query Auth credential.
  2. In the HTTP Request node, confirm the URL parameter has the web page you want to convert. Change this URL if needed.
  3. In the Read/Write Files from Disk node, check the filename is as you want it, or update it.

Step 3: Test the Workflow

  1. Run the workflow manually using the Manual Trigger node’s Test button.
  2. Confirm a PDF file is saved correctly on your local disk.

Step 4: Activate for Production

  1. Activate the workflow in n8n once testing works.
  2. Use the manual trigger to run anytime or link another trigger for scheduled runs.

If you run self-host n8n, ensure file write permissions are set correctly for the disk node.


Customization Ideas

  • Change the URL in the HTTP Request node to convert different web pages.
  • Modify the filename in the disk write node to include timestamps for unique file names.
  • Add more HTTP headers if API needs special headers for requests.

Common Problems and Fixes

401 Unauthorized Error in HTTP Request Node

The API Key is incorrect or missing.
Update the HTTP Query Auth credentials in n8n with the right ConvertAPI secret.

PDF File Not Saving to Disk

Check that the Read/Write Files from Disk node is using write operation.
Confirm the data property name matches exactly (usually “=data”).
Make sure n8n has permission to write to the folder on your computer.


Pre-Production Checklist

  • Test the HTTP Request node to ensure ConvertAPI connection works.
  • Test saving a sample file with the disk node.
  • Check that the URL used in the HTTP Request node is reachable.
  • Run the whole workflow once manually to confirm the PDF saves properly.
  • Backup existing files if overwriting named PDF files.

Summary

✓ Saves time by automating web page to PDF conversion.
✓ Produces consistent, error-free PDF files every run.
✓ Uses ConvertAPI with valid authentication for secure conversion.
✓ Saves PDFs directly to local disk with simple filename control.
→ Allows easy edits to URL or filenames for different tasks.
→ Makes PDF saving automatic, removing manual steps.


Automate web page to PDF with n8n and HTTP Request

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow processes one URL per run. To convert multiple pages, add a loop or split node in n8n to run conversions for each URL.
The HTTP Request node uses HTTP Query authentication with a ConvertAPI secret key set as a credential in n8n. This key must be valid to get access to the API.
Make sure the Read/Write Files from Disk node is set to write mode and the correct data property name (usually ‘=data’) is used. Also check n8n has OS-level permissions to write files.
Yes, after import, edit the URL value in the HTTP Request node to the desired webpage and change the filename in the file write node to customize output file naming.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.