Home › APIs › PDF & documents
PDF Page Numbers API
Adds page numbers to every page of a PDF.
Used by: Office staff, accountants, students and apps that handle PDF files.
Stamp page numbers on every page: position (6 places), style (1 / Page 1 / Page 1 of N / - 1 -), first number, text size, optional no number on the cover page. 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-page-numbers \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"fileName": "sample.pdf", "fileContent": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Cj4+Ci9NZWRpYUJveCBbIDAuMCAwLjAgNTk1IDg0MiBdCi9QYXJlbnQgMiAwIFIKPj4KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDU0IDAwMDAwIG4gCjAwMDAwMDAxMTMgMDAwMDAgbiAKMDAwMDAwMDE2MiAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDUKL1Jvb3QgMyAwIFIKL0luZm8gMSAwIFIKPj4Kc3RhcnR4cmVmCjI1NgolJUVPRgo=", "format": "of"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
fileContent | string | The file as base64 (a data: URI is fine) |
fileName | string | File name with extension, e.g. report.pdf |
files | array | Or several files: [{fileName, fileContent (base64)}] |
position | string | bc bottom center, br, bl, tc top center, tr, tl |
format | string | n = 1, page = Page 1, of = Page 1 of N, dash = - 1 - |
start | integer | First page number, default 1 |
size | integer | Text size in points, default 10 |
skipFirst | boolean | No number on the first page (cover) |
Price
Included in every plan: 500 calls a month free, then from €9 a month for 5,000 calls across all APIs. Pro, €29 for 25,000 calls, is the one we recommend.
Questions
What does the PDF Page Numbers API do?
Adds page numbers to every page of a PDF.
Where does the data come from?
Stamp page numbers on every page: position (6 places), style (1 / Page 1 / Page 1 of N / - 1 -), first number, text size, optional no number on the cover page. 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 9 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.