Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以用 Prawn 缩进一段完整的文本?
所以不只是段落的第一行:indent_paragraphs => some_number吗?但是该段中的所有文本。
:indent_paragraphs => some_number
试试这个:
Prawn::Document.generate('indented.pdf') do |pdf| pdf.indent(20) do pdf.text "indented paragraph" end end