The backend provides RESTful API endpoints for PDF processing operations.
All API endpoints are prefixed with /api/pdf/
Merge multiple PDF files into one.
file0, file1, etc. fieldsSplit a PDF into specific pages or page ranges.
file0 and options (JSON string){ mode: 'pages'|'range', pages?: number[], startPage?: number, endPage?: number }Convert PDF pages to images (info only - actual conversion requires additional libraries).
file0 and options{ format?: 'png'|'jpg', dpi?: number }Convert images to a PDF document.
Compress a PDF file (basic compression by re-saving).
file0Get PDF metadata and information.
file0Add password protection to PDF (note: requires additional libraries).
file0 and options{ password: string }Rotate PDF pages by specified angle.
file0 and options{ angle: 90|180|270, pages?: number[] }All endpoints return JSON error responses with { success: false, message: string } format when errors occur.