pdfpagelabels is a small Poppler based tool for extracting page labels (as opposed to page numbers) from a pdf file.
pdfpagelabels [options] <input.pdf>
-f,--first-page <int>
first page to include in page label list (default: 1)
-l,--last-page <int>
last page to include in page label list (default: last page)
-v,--verbose
print verbose output with page number and page label instead of a pure list of labels
- Make sure you install the Poppler development libraries.
e.g. by running
sudo apt-get install libpoppler-glib-dev
- Use the minimal, non-standard installation script to compile and install the tool
make all
,make install
,make clean
note that this make-Script does not verify dependencies, but you should figure this easily out yourself.
Matthias Heim, 2020 (Matthias.Heim@hep-verlag.ch)