render entries of the table of contents for PDFs