pdf-toc
SYNOPSIS
pdf-toc.raku [options] file.pdf
Options: --password password for an encrypted PDF --/title disable printing of title (if present) --/labels display raw page numbers --/closed disable printing of closed annotations
DESCRIPTION
Prints a table of contents for a given PDF, using the outlines, names and page-labels contained in the PDF.
Note that not every PDF contains contains a table of contents. pdf-info.raku
can be used to check this:
% pdf-info.raku my-doc.pdf | grep Outlines:
Outlines: yes
If Outlines
is yes
, the PDF probably has a table of contents.