by veidr · 12y ago · 0 comments
Prawn provides very fine control over the rendering, at the expense of having to finely control your render.
You can use your own fonts (and have to, for Asian languages etc) and it is easy to do layouts where the size is fixed and you shrink the text down to fit it in (or truncate it). On the other hand is not good for really rich text layout like you can do in HTML and CSS, where the size might vary.
We are working on a long term solution to that problem by finally focusing on building an extension and components layer for Prawn, which would hopefully allow all sorts of other gems to fill in these gaps. But it's a ways off into the future.
If going to Asciidoc is an option, Asciidoctor is now Prawn based for PDF output, and might make sense for simple reports: