Skip to main content

Split PDF

Extract specific pages or ranges from a PDF document.

Endpoint

Post/api/v1/split

Parameters

NameTypeDescription
file*fileThe PDF file to split.
pages*stringPage ranges (e.g., "1-3, 5, 8-10").

Implementation Example

Use our standard multipart/form-data interface to process files. Ensure you include yourx-api-key in the request headers.

split.js
const formData = new FormData();
formData.append('file', file);
formData.append('pages', '1-5');

const response = await fetch('https://api.pdftheory.com/v1/split', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  },
  body: formData
});

const result = await response.blob();

Important Notice

Maximum file size is currently 50MB. If you need to process larger files, please contact our enterprise sales team.

pdftheory - プロフェッショナルPDFツール | PDFTheory