Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Disclaimer: I'm a regular committer to the prawn project.</p> <p>Prawn isn't built on top of PDF::Writer - it's a replacement written from the ground up that avoids many of the limitations. I'd advise against PDF::Writer. It's old, difficult to use and doesn't support Unicode text.</p> <p>Depending on the kind of document you need to generate, you have a few options:</p> <p><a href="http://github.com/bruce/rtex/tree/master" rel="nofollow noreferrer">RTex</a> is a rails plugin that uses latex to generate PDF output. If you need to generate a formatted document with lots of text and you're happy with the (huge) latex dependency, it's a nice solution.</p> <p>If you like the idea of a HTML->PDF conversion (like HTMLdoc but you know... good), you could try <a href="http://www.princexml.com/" rel="nofollow noreferrer">PrinceXML</a>. There's a free version, but it watermarks the output. The licensed version is a few thousand dollars. The output is great, thanks to useful CSS support. There is at least 1 plugin that helps you integrate Prince with Rails - <a href="http://github.com/mbleigh/princely/tree/master" rel="nofollow noreferrer">princely</a>.</p> <p>For generating the output with Ruby syntax, Prawn is your best option. Manually building the pages of your output gives you plenty of fine grained control, but you <em>can</em> get bogged down in co-ordinate maths. It's also not capable of at least one of the features you require - nested tables.</p> <p>Which one works for you really depends on the style of document you need to generate.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload