Documentation

Everything you need to integrate PDFShift into your application

Introduction

Welcome to the PDFShift API documentation. Our API allows you to convert HTML content to PDF, PNG, JPG, and WEBP formats with just a simple HTTP request.

Base URL

https://api.pdfshift.io/v3/

Authentication

All API requests require authentication using your API key. You can pass the API key in the Authorization header:

Authorization: Basic base64(api:sk_your_api_key)

Convert to PDF

Convert a URL or HTML content to PDF:

POST /convert/pdf { "source": "https://example.com", "format": "pdf" }

Convert to Image

Generate screenshots in various formats:

POST /convert/image { "source": "https://example.com", "format": "png", "width": 1920 }

Need Help?

Can't find what you're looking for? Check out our guides or contact support.

Contact Support →