CLI toolset to generate table of contents for PDF files automatically
brew install pdf.tocgen
pdf.tocgen