Renumber PDF pages

Need to renumber PDF pages

For page numbers of reports and books, it is common to use Roman numerals (i, ii, iii ...) in the table of contents and Arabic numerals (1, 2, 3 ...) starting from 1 in the main story. is.

PDF_page_number.png

However, that is not the case with the PDF version, and the pages of the PDF are often numbered with simple serial numbers. In that case, even if n pages are written in the table of contents, in the PDF version, the total number of pages in the table of contents m must be added to the (m + n) page.

To eliminate this inconvenience, I will show you how to assign page numbers similar to books to PDF.

environment

To install pagelabes, run pip install pagelabels.

Run

python -m pagelabels --startpage 1 --type "roman lowercase" --outfile out.pdf in.pdf
python -m pagelabels --startpage 9 --type "arabic" out.pdf

pagelabels options

Appearance and operability with Adobe Acrobat Reader

Recommended Posts

Renumber PDF pages
Split PDF into arbitrary pages
Convert A4 PDF to A3 every 2 pages
Combine PDF pages, copy and paste series immediately