Skip to main content

Convert URL to PDF

ConvertConvert URL to PDF

The Convert URL to PDF API converts a web page at a URL into a PDF. You send webUrl, authType (NoAuth/Basic), optional username/password, docContent (empty for URL conversion), docName, layout, format, scale, margins, printBackground, displayHeaderFooter, and IsAsync. The API returns the PDF (or 202 + Location for async). Use the tester below to try it; more details are in the sections that follow.

Try the Convert URL to PDF API

Quick reference

Endpoint: POST /api/v2/ConvertUrlToPdf · Required: api-key, webUrl, authType, docContent, docName, layout, format, scale, margins, printBackground, displayHeaderFooter, IsAsync

Try it live

Use the form below to send your API key, web URL, auth (if needed), output name, layout, format, scale, margins, and options. The response is the PDF (or polling URL when async). No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Convert URL to PDF?

This endpoint converts a live web page (URL) into a PDF. You provide webUrl, authType (NoAuth or Basic; username/password if Basic), docName, layout (portrait/landscape), format (A0–A8, etc.), scale, margins, printBackground, displayHeaderFooter, and IsAsync. The API captures the page (CSS, images, layout) and returns the PDF or a Location URL for async.

Key features

  • Live URL – Fetches and renders the page at webUrl.
  • AuthNoAuth or Basic (username/password) for protected pages.
  • Layout and format – Same options as Convert HTML to PDF (layout, format, scale, margins).
  • AsyncIsAsync returns 202 with Location URL for polling.
Best for

Use when you need a PDF of a live web page (e.g. article, dashboard). For static HTML content use Convert HTML to PDF.

Prerequisites

Before using this endpoint, make sure you have:

Response Format

The API returns a PDF document:

  • Status 200: URL to PDF conversion completed immediately - binary PDF content in response body
  • Status 202: Request accepted and processing asynchronously - use the Location header URL to poll for results

For asynchronous requests, poll the Location URL until status 200 is returned with the PDF document.

Get Help