---
title: Convert URL/HTML to PDF API
slug: html-to-pdf-render
url: https://apyhub.com/dosvak/service/html-to-pdf-render
provider: Dosvak LLC
categories: [File Conversion, File Manipulation, Smart Generation]
tags: [html-to-pdf, pdf-rendering, document-generation, url-to-pdf, pdf-merge]
auth: api_key
---

# Convert URL/HTML to PDF API

Generate a PDF from HTML or a public URL, choose A4, Letter, or Legal, and merge extra PDF URLs into the output.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Renders either a public URL or raw HTML into a PDF. You can also supply additional PDF… | 100 |

## About

## What it does
HTML to PDF Render turns a public URL or raw HTML into a PDF binary, with optional PDF merging in the same request. Send either `url` or `html`, choose a `page_size` of `A4`, `Letter`, or `Legal`, and include `merge_urls` when you want to append existing PDFs after the rendered output.

Use it when you need server-side document generation from web content: invoices, reports, receipts, archived pages, or print-ready snapshots of dynamic HTML. The response is a binary PDF, so you can stream it, store it, or pass it into your own file pipeline without parsing intermediate data.

Because the input is plain HTML or a reachable URL, it fits workflows that already render content in the browser or template layer but need a stable PDF artifact for download, email, or recordkeeping. The merge step is useful when a generated cover page or statement should be combined with supporting PDFs before delivery.

HTML to PDF Render keeps the contract simple: one request body, predictable page sizing, and a PDF result.

## Usage

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