---
title: Convert HTML to PDF API
slug: convert-html-to-pdf
url: https://apyverse.com/apyhub/service/convert-html-to-pdf
provider: ApyHub
categories: [File Conversion]
auth: api_key
---

# Convert HTML to PDF API

Convert HTML from base64, file upload, or URL into PDF downloads or signed links. Useful for invoices, reports, and archived web pages.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `convert/html-base64/pdf-url` | What it does Converts a base64-encoded HTML file into a PDF and returns a signed link to the genera… | 100 |
| POST | `convert/html-file/pdf-file` | What it does Converts an uploaded HTML file into a PDF and returns the generated PDF as a binary re… | 100 |
| POST | `convert/html-file/pdf-url` | What it does Converts an uploaded HTML file into a PDF and returns a signed PDF link. The request s… | 100 |
| POST | `convert/html-url/pdf-file` | What it does Converts the HTML file available at the provided remote URL into a PDF and returns the… | 100 |
| POST | `convert/html-url/pdf-url` | What it does Converts a remote HTML file accessible by URL into a PDF and returns a signed link to… | 100 |
| POST | `convert/html-base64/pdf-file` | What it does Converts a base64-encoded HTML file into a PDF and returns the PDF as a binary downloa… | 100 |

## About

## What it does
HTML to PDF Converter turns HTML sources into PDF output. Send a base64-encoded HTML payload, a file upload, or a remote HTML URL, and get back either a downloadable PDF binary or a signed PDF link.

Use the `/base64/link`, `/file/link`, and `/url/link` endpoints when you want a URI you can hand off to another system or store for later retrieval. Use the `/base64/download`, `/file/download`, and `/url/download` endpoints when your application needs the PDF bytes directly. The file and URL variants also support a `landscape` query parameter, and the file download endpoint lets you set an `output` filename.

This is a practical fit for generating invoices, reports, receipts, and archived web pages from HTML you already render in your application. If your template engine or CMS already produces HTML, you can convert that content into a PDF without adding a browser-based rendering flow on your side.

## Usage

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