All endpoints
PDF Page Numbers
POST
/api/v1/pdf/page-numbersAdd page numbers to a PDF — choose the position, font size, starting number, format and page range.
Authentication
Requires an API key in the X-API-Key header.
Try it
POST
/api/v1/pdf/page-numbersParameters
pdfBase64stringrequiredBase64-encoded PDF file.
positionstringoptionalWhere to stamp the number. Default bottom-center.
bottom-centerbottom-rightbottom-lefttop-centerfontSizeintegeroptionalFont size, 6–48. Default 11.
startAtintegeroptionalFirst page number. Default 1.
formatstringoptionalLabel format with {n} and {total} placeholders. Default "{n} / {total}".
pagesstringoptionalPage range to stamp, e.g. "1-3,5". Default: every page.
Request body
{
"pdfBase64": "JVBERi0xLjQK...",
"position": "bottom-center",
"format": "{n} / {total}"
}Response codes
200Success.400Invalid request — check your body or parameters.401Missing or invalid API key.403The API key is not scoped to this endpoint.429Rate limit exceeded — retry after a short wait.
Language
cURL
Request
curl -X POST https://utilerio.com/api/v1/pdf/page-numbers \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"pdfBase64":"JVBERi0xLjQK...","position":"bottom-center","format":"{n} / {total}"}'Response
binary application/pdf
