Go to example tasks

Convert a webpage to PDF

Convert any public webpage into a PDF with A4 page size, margins, background graphics, and a custom output filename.

Try for free
HTML to PDF Converter
HTML to PDF Converterautomation-lab/html-to-pdf-converter
#
Source
PDF Key
PDF URL
+5 fields
Text
Number
Boolean
List
Object

Input

📥 Input type:url
Page URL:https://apify.com/
📐 Page format:A4
Print background:true
Page readiness:load
Navigation timeout (seconds):30
Margin top:10mm
Margin bottom:10mm
Margin left:10mm
Margin right:10mm
Output filename prefix:webpage-pdf

Output fields

#
Source
PDF Key
PDF URL
Size (KB)
Success
Duration (ms)
Failure stage
Error

How it works

Sign up on Apify or log in

The HTML to PDF Converter Actor is ready to run with the inputs already set for "Convert a webpage to PDF". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Convert a webpage to PDF" task

The HTML to PDF Converter Actor will start running based on the input automatically. You can also change all the input fields, like 📥 input type, page url, and more, to match your specific use case.

Receive the "Convert a webpage to PDF" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as #, source, PDF Key, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Convert a webpage to PDF" task via API.

Image

Integrate "Convert a webpage to PDF" into your workflow

Connect "Convert a webpage to PDF" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay