Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a pdf invoice in rails/ruby

I want to create an invoice in PDF format using rails/ruby.

So company header and the top, client information, and then line items with pricing and then a total at the bottom etc.

What do you guys advise?

Is it tricky to get the formatting correct so it prints out correctly?

like image 227
Blankman Avatar asked Jan 21 '23 18:01

Blankman


1 Answers

I recommend a gem called prawn: http://prawn.majesticseacreature.com/

I've used it before and liked the results.

like image 187
tybro0103 Avatar answered Jan 28 '23 02:01

tybro0103