PDF tools
PDF tools
Five synchronous PDF endpoints. Each takes multipart/form-data and returns the
result in the response body — no key required (rate-limited per IP, see
Rate limits). Files are processed in the cloud over an encrypted
connection and auto-deleted right after.
Inputs are numbered parts: file_0, file_1, … (declared order is preserved).
Per-file size caps apply; oversized uploads return 413.
POST /pdf/merge
Combine multiple PDFs into one ordered document. Up to 50 files.
curl -X POST https://bastosconvert.com/api/v1/pdf/merge \
-F file_0=@chapter1.pdf \
-F file_1=@chapter2.pdf \
-F file_2=@appendix.pdf \
-o merged.pdfPOST /pdf/split
Split one PDF into individual pages, returned as a single ZIP archive.
curl -X POST https://bastosconvert.com/api/v1/pdf/split \
-F file_0=@report.pdf \
-o pages.zipPOST /pdf/compress
Shrink a PDF losslessly — deflates content streams, drops unused objects and rebuilds the cross-reference table; fonts and images stay bit-for-bit identical.
curl -X POST https://bastosconvert.com/api/v1/pdf/compress \
-F file_0=@large.pdf \
-o small.pdfPOST /pdf/rotate
Rotate every page by an angle (degrees: 90, 180, 270).
curl -X POST https://bastosconvert.com/api/v1/pdf/rotate \
-F file_0=@scan.pdf \
-F angle=90 \
-o rotated.pdfPOST /pdf/jpg_to_pdf
Pack one or more JPGs into a single PDF, one image per page.
curl -X POST https://bastosconvert.com/api/v1/pdf/jpg_to_pdf \
-F file_0=@p1.jpg \
-F file_1=@p2.jpg \
-o photos.pdfThe API reference (sidebar) carries the exact request/response schema and status codes for each endpoint.