ApyHub

Convert HTML to PDF API

HTML to PDF API for invoices, reports and receipts. Send an HTML file, URL or base64 string and get a PDF download or a signed link. Free tier, no card. The…

Developer tools#documents--productivity

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

HTML to PDF API for invoices, reports and receipts. Send an HTML file, URL or base64 string and get a PDF download or a signed link. Free tier, no card.

The HTML to PDF API converts HTML into PDF documents. Send a remote HTML file url, a base64 string, or upload an .html file (up to 100MB), and get the result back as a PDF download or as a signed link in data.

Download endpoints return the PDF bytes for immediate use, and you can name the file with output on file uploads. Link endpoints return a shareable URL for storage or email. Set landscape=true on most endpoints for wide tables and dashboards.

Authenticate every request with your ApyHub token in the apy-token header. Documentation: https://apyhub.com/utility/converter-html-pdf

Endpoints 6

  • POSTConvert remote HTML file URL to PDF signed link/apyhub/convert-html-to-pdf/url/linkSend the HTML page URL you want to convert to PDF.
  • POSTConvert base64-encoded HTML file to PDF download/apyhub/convert-html-to-pdf/base64/downloadConvert base64-encoded HTML into a PDF download with a single JSON request.
  • POSTConvert base64-encoded HTML file to PDF signed link/apyhub/convert-html-to-pdf/base64/linkConvert a base64-encoded HTML file into a PDF link by sending the encoded bytes in the request body.
  • POSTConvert HTML file upload to PDF download/apyhub/convert-html-to-pdf/file/downloadUpload an HTML file to download the converted PDF.
  • POSTConvert HTML file upload to PDF signed link/apyhub/convert-html-to-pdf/file/linkUpload an HTML file and get back a PDF link; this example also sets the optional landscape query flag to false by omission.
  • POSTConvert remote HTML file URL to PDF download/apyhub/convert-html-to-pdf/url/downloadDownload a PDF from a webpage URL by sending the page link in the JSON body.

API details

Base URL
https://api.eu.apyhub.com
Authentication
An API key in the apy-token header
Operations
6 operations on 6 pathsPOST 6
Response formats
application/json
Description format
OpenAPI 3.0.3, API version 1.0.0

How to test the Convert HTML to PDF API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Convert HTML to PDF API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the apy-token header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Convert remote HTML file URL to PDF signed link” (POST /apyhub/convert-html-to-pdf/url/link), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Convert HTML to PDF API?

HTML to PDF API for invoices, reports and receipts. Send an HTML file, URL or base64 string and get a PDF download or a signed link. Free tier, no card. The… It is listed under Developer tools and has 6 endpoints.

Who publishes the Convert HTML to PDF API?

It is listed from ApyHub's public API description (an OpenAPI document), not published by ApyHub on Swastik Codes. Anyone who controls apyhub.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Convert HTML to PDF API?

Requests go to https://api.eu.apyhub.com. Endpoint paths are added to this base URL.

How do I authenticate with the Convert HTML to PDF API?

With an API key in the apy-token header.

How many endpoints does the Convert HTML to PDF API have?

6 operations on 6 paths (6 POST).

Is forking the Convert HTML to PDF API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.