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
https://api.pdfpro.com/v1
Quick Example
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
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.
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
}
}
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")
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"
Ready to Integrate?
Get your free API key and start building PDF processing into your application today.
Get API Key
View Full Documentation