---
title: Convert Webpage to PDF API
slug: capture-public-url-as-pdf
url: https://apyhub.com/apyhub/service/capture-public-url-as-pdf
provider: ApyHub
categories: [File Conversion]
auth: api_key
---

# Convert Webpage to PDF API

Capture a public URL as a PDF download or signed link. Useful for archiving pages, sharing snapshots, and automating document workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/generate/webpage/pdf-file` | What it does Captures the public web page at the given URL and returns the result as a PDF download… | 50 |
| POST | `/generate/webpage/pdf-url` | What it does Captures the content from a public URL and returns a signed PDF link. The request body… | 50 |

## About

## What it does
Web Page to PDF turns a public URL into a PDF file you can download or store as a signed link. Send the page URL in the request body, and choose whether you want a direct binary download or a link response.

Use the `/download` endpoint when you want the PDF returned as a file. It accepts `url` in the body, plus optional `margin` and `landscape` query parameters, and a file name through `output`. Use the `/link` endpoint when you prefer a JSON response containing `data` with a URI to the generated PDF, with optional `margin` and `landscape` query parameters.

This is useful when you need to archive public webpages, generate snapshots of landing pages, or create shareable document copies of web content for review and approval workflows. Because the input is a public URL, it fits capture jobs for published pages, docs, and static marketing content.

Web Page to PDF keeps the interface simple: one URL in, a PDF out. Choose the response format that matches your workflow, whether you're streaming the file to a user or persisting a signed link for later access.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/capture-public-url-as-pdf
