Numbering pdf pages

How can I number the pages in my pdf?

There is an advanced option to number pdf pages:

--default-header: Add a default header, with the name of the page to the left, and the page number to the right, this is short for:

--header-left='[webpage]'
--header-right='[page]/[toPage]'
--margin-top 2cm
--header-line

The following url demonstrates the working of this:

http://pdfmyurl.com/?url=http://pdfmyurl.com/test/test_pagebreak.html&--print-media-type&--default-header

Numbering pages, part 2

Ok, that's the top, how can I number the pdf pages at the bottom of the document?

Use the advanced options to number the pages:

--footer-left=[webpage]
--footer-right=[page]/[toPage]
--margin-bottom=2cm
--footer-line

The following url demonstrates the working of this:

http://pdfmyurl.com/?url=http://pdfmyurl.com/test/test_pagebreak.html&--print-media-type&--footer-left=[webpage]&--footer-right=[page]/[toPage]&--margin-bottom=2cm&--footer-line

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.