Add Page Numbers to PDF
Easily insert page numbers into your PDF documents. Customize the position, style, and range for free.
Accepted formats
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| files[] | file | Yes | File(s) to convert |
| page_number_position | string | No | Position: top-left, top-center, top-right, bottom-left, bottom-center, bottom-right (default: bottom-center) |
| page_number_margin | integer | Yes | Margin in pixels (10-50) |
| page_number_format | string | No | Page number format string, {p} = page, {t} = total (default: {p} / {t}) |
| page_number_font_size | integer | No | Font size (8-48, default: 12) |
Code example
curl -X POST "https://gurupdf.com/api/v1/convert/add-page-numbers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "files[]=@/path/to/document.pdf"