Prawn: Table of content with page numbers
问题 I need to create a table of contents with Prawn. I have add_dest function calls in my code and the right links in the table of content: add_dest('Komplett', dest_fit(page_count - 1)) and text "* <link anchor='Komplett'> Vollstaendiges Mitgliederverzeichnis </link>", :inline_format = true This works and I get clickable links which forward me to the right pages. However, I need to have page numbers in the table of content. How do I get it printed out? 回答1: you should read the chapter on Outline