API Documentation

Integrate powerful PDF processing capabilities into your applications with our simple REST API.

REST API
Secure
Unlimited Requests

Getting Started

Our API allows you to programmatically convert, merge, split, compress, and manipulate PDF documents. All endpoints are RESTful and return JSON responses.

Base URL

Base URL
https://api.pdfpro.com/v1

Quick Example

JavaScript
const response = await fetch('https://api.pdfpro.com/v1/merge', {
    method: 'POST',
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        files: ['file1.pdf', 'file2.pdf']
    })
});

Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header of each request.

Authorization Header

Header Format
Authorization: Bearer YOUR_API_KEY

note: Keep your API key secure. Never expose it in client-side code or public repositories.

API Endpoints

Here are the available endpoints for PDF processing. Each endpoint accepts POST requests with JSON payloads.

POST
/v1/merge

merge_pdf

Merge multiple PDF files into a single document.

Request Parameters

Parameter Type Required Description
files Array Yes Array of PDF file URLs or base64-encoded file contents to merge
output_name String No Optional custom name for the output PDF file

Response Example

Success Response
{
    "success": true,
    "data": {
        "url": "https://api.pdfpro.com/download/merged.pdf",
        "size": "2.5 MB",
        "pages": 45
    }
}
POST
/v1/split

split_pdf

Split a PDF file into multiple documents based on page ranges.

Request Parameters

Parameter Type Required Description
file String Yes URL or base64-encoded content of the PDF file to split
ranges Array Yes Array of page ranges to extract (e.g., "1-5", "6-10", "11")
POST
/v1/compress

compress_pdf

Reduce the file size of a PDF document while preserving quality.

Request Parameters

Parameter Type Required Description
file String Yes URL or base64-encoded content of the PDF file to split
quality String Yes Compression quality: "low", "medium", or "high"

API Features

Fast Processing

Process large PDF files in seconds with our optimized infrastructure.

Secure & Private

All files are encrypted and automatically deleted after processing.

No Rate Limits

Process as many documents as you need without restrictions.

SDK Support

Official SDKs for JavaScript, Python, PHP, and more coming soon.

Ready to Integrate?

Get your free API key and start building PDF processing into your application today.