Skip to content

Pdf Page Numbers API

POST https://api.findutils.com/api/tools/pdf-page-numbers/execute

Add page numbers to a PDF. The format string uses {n} for the page number and {total} for the count, so "Page {n} of {total}" and a bare "{n}" both work. Numbering can start at any value and can skip the first page, which is what a title page usually wants. Input and output are base64-encoded PDFs.

Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys

Request body

application/json
  • pdf

    string required

    The base64-encoded PDF to number.

  • position

    string optional

    Where the number sits. Default: bottom-center. One of bottom-center · bottom-right · bottom-left · top-center · top-right · top-left. Default "bottom-center".

  • start

    integer optional

    The number the first numbered page gets. Default: 1. Default 1.

  • format

    string optional

    Template with {n} and {total}. Default: "{n}". Default "{n}".

  • size

    number optional

    Font size in points. Default: 10. Default 10.

  • margin

    number optional

    Distance from the page edge in points. Default: 28. Default 28.

  • skip_first

    boolean optional

    Leave page 1 unnumbered, for a title page. Default: false. Default false.

Example arguments

Verified
{
  "pdf": "JVBERi0xLjQKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUiA1IDAgUl0gL0NvdW50IDIgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCAyMDAgMjAwXSAvQ29udGVudHMgNCAwIFIgL1Jlc291cmNlcyA8PCA+PiA+PgplbmRvYmoKNCAwIG9iago8PCAvTGVuZ3RoIDM3ID4+CnN0cmVhbQpCVCAvRjEgMTIgVGYgMjAgMTAwIFRkIChwYWdlIDEpIFRqIEVUCmVuZHN0cmVhbQplbmRvYmoKNSAwIG9iago8PCAvVHlwZSAvUGFnZSAvUGFyZW50IDIgMCBSIC9NZWRpYUJveCBbMCAwIDIwMCAyMDBdIC9Db250ZW50cyA2IDAgUiAvUmVzb3VyY2VzIDw8ID4+ID4+CmVuZG9iago2IDAgb2JqCjw8IC9MZW5ndGggMzcgPj4Kc3RyZWFtCkJUIC9GMSAxMiBUZiAyMCAxMDAgVGQgKHBhZ2UgMikgVGogRVQKZW5kc3RyZWFtCmVuZG9iagp4cmVmCjAgNwowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA1OCAwMDAwMCBuIAowMDAwMDAwMTIxIDAwMDAwIG4gCjAwMDAwMDAyMjUgMDAwMDAgbiAKMDAwMDAwMDMxMiAwMDAwMCBuIAowMDAwMDAwNDE2IDAwMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNyAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKNTAzCiUlRU9GCg==",
  "position": "bottom-center",
  "format": "Page {n} of {total}"
}