---
title: Convert Webpage to PDF API
slug: convert-webpage-to-pdf
url: https://apyverse.com/apyhub/service/convert-webpage-to-pdf
provider: ApyHub
categories: [Data Extraction, File Conversion]
auth: api_key
---

# Convert Webpage to PDF API

Capture a public URL as a PDF download or signed link. Set margin and landscape for printable snapshots and archived web pages.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `generate/webpage/pdf-file` | What it does Captures a publicly accessible webpage URL and returns the generated PDF as a binary d… | 50 |
| POST | `generate/webpage/pdf-url` | What it does Captures a publicly accessible webpage URL and returns a signed PDF link in a JSON obj… | 50 |

## About

## What it does
Webpage to PDF lets you capture a public web page and return it as a PDF, either as a direct download or as a signed link. Send a URL and choose whether you want the output in portrait or landscape; for downloads, you can also set the page margin and output filename.

Use `POST /download` when you want a binary PDF response you can store, forward, or attach to another workflow. The request body contains `url`, and the query string supports `margin`, `output`, and `landscape`. Use `POST /link` when you prefer a signed PDF URL instead of the file itself; it accepts `url`, `margin`, and `landscape`, and returns a JSON object with `data` set to the PDF link.

This is a practical fit for archiving invoices, saving published articles, generating printable snapshots of landing pages, or turning a customer-facing page into a document for review. The service is scoped to public URLs, so it works well when you need a stable PDF version of content that already lives on the web.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/convert-webpage-to-pdf
