RadarPricesOrder

Home › APIs › Other data

Other data

PDF Split API

In plain words

Official public data, ready to use.

Used by: Developers and data teams.

Split a PDF: keep pages (mode=pick, pages='1-3, 5'), remove pages (mode=remove) or one PDF per page (mode=each). Password-protected PDFs open with password. Runs on our server, files are deleted right after the call, nothing stored.

Try it live, no sign-up

Run the example as is, or change the input. 5 own tries a day without a key.

Example request

curl -X POST https://radarbg.com/v1/pdf-split \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"fileContent": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Cj4+Ci9NZWRpYUJveCBbIDAuMCAwLjAgNTk1IDg0MiBdCi9QYXJlbnQgMiAwIFIKPj4KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDU0IDAwMDAwIG4gCjAwMDAwMDAxMTMgMDAwMDAgbiAKMDAwMDAwMDE2MiAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDUKL1Jvb3QgMyAwIFIKL0luZm8gMSAwIFIKPj4Kc3RhcnR4cmVmCjI1NgolJUVPRgo=", "fileName": "sample.pdf", "mode": "each"}'

Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.

Inputs

FieldTypeDescription
fileContentstringThe file as base64 (a data: URI is fine)
fileNamestringFile name with extension, e.g. report.pdf
filesarrayOr several files: [{fileName, fileContent (base64)}]
modestringpick, remove or each
pagesstringPages, e.g. 1-3, 5, 8-
passwordstringPDF password if it is protected

Price

Included in every plan: 500 calls a month free, then from €5 a month for 5,000 calls across all APIs.

Questions

What does the PDF Split API do?

Official public data, ready to use.

Where does the data come from?

Split a PDF: keep pages (mode=pick, pages='1-3, 5'), remove pages (mode=remove) or one PDF per page (mode=each). Password-protected PDFs open with password. Runs on our server, files are deleted right after the call, nothing stored.

How much does it cost?

500 calls a month are free with no card. Paid plans start at EUR 5 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.

Can I use it without writing code?

Yes. Try it live on this page, use our free browser tools, or ask us to run it on your list as a service.

Related APIs

Air Quality APIHow clean the air is right now at official monitoring stations near any place in Europe.
Barcode GeneratorOfficial public data, ready to use.
Business Days Calculator APIOfficial public data, ready to use.
Carbon Footprint APICalculates the CO2 of a flight, a car trip or energy use with official UK government factors.
Data Converter APIOfficial public data, ready to use.
E-Invoice ReaderOfficial public data, ready to use.