Generate PDF from Rails

前端 未结 10 1276
醉酒成梦
醉酒成梦 2020-12-02 06:36

The Ruby On Rails Wiki lists a couple of libraries that facilitate PDF generation in Rails. I need to print out address labels (in letter f

10条回答
  •  天命终不由人
    2020-12-02 07:34

    For your use case, I agree with most other answers that prawn is the right choice because you need pixel-level control over the output.

    For generating PDF reports with built-in (opinionated) table styling, headers, etc., you can use the report gem - check out Generate pdf from Rails 3 - what tool to choose? for an example of how to use.

提交回复
热议问题