如何用大虾生成目录? [英] How to generate table of contents with prawn?
本文介绍了如何用大虾生成目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种简单的方法来生成带有相应页面链接的目录?
Is there an easy way to generate table of contents with links to corresponding pages?
推荐答案
在 prawn 的最新版本中,是的.查看 API 示例的 examples/general/outlines.rb 示例.
In recent-ish versions of prawn, yes. Check out the examples/general/outlines.rb example for API samples.
见 http://prawnpdf.org/manual.pdf p.96
这篇关于如何用大虾生成目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文