Page numbers that skip the cover page
Number a PDF so the cover has no number and the first content page reads 1. The pages and start_at options, and what {total} counts, with examples you can copy.
Reports, proposals and theses usually have a cover, and sometimes a table of contents, that should not carry a number. The first page of content should read 1. Two options of the PDF Page Numbers API do it.
pages and start_at
pagessays which pages get a number.2-means page 2 to the end.start_atis the number printed on the first numbered page.
curl https://api.justapi.tech/v1/pdf/page-numbers \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{"source": {"url": "https://files.example.com/report.pdf"}, "options": {"pages": "2-", "start_at": 1}}'
The cover is left alone, page 2 reads 1, page 3 reads 2, and so on.
Cover and contents
With a cover and a two-page table of contents, start numbering at page 4:
{ "pages": "4-", "start_at": 1 }
What {total} counts
{total} is the number of pages in the whole file, including the ones you did not number. With a cover and 10 pages of content, Page {n} of {total} would end at "Page 10 of 11", which looks wrong. Two ways around it:
- Use a format without the total:
Page {n}. - Or split the cover off first, number the content, and merge the cover back. That is three calls, so only worth it when "of N" matters.
Roman numerals for the front matter
The API writes Arabic numbers. If your style guide wants i, ii, iii on the front matter, number those pages in your document generator, and use the API for the main sequence only.
Try it
In the free page numbering tool, type 2- in Pages and 1 in First number.