How to generate table of contents with prawn?
Is there an easy way to gener开发者_Python百科ate table of contents with links to corresponding pages?
In recent-ish versions of prawn, yes. Check out the examples/general/outlines.rb example for API samples.
See http://prawnpdf.org/manual.pdf p. 96
精彩评论