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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free