{"repo":"excid3/receipts","free":true,"listed":false,"github":"https://github.com/excid3/receipts","clone":"git clone https://github.com/excid3/receipts.git","description":"Easy receipts and invoices for your Ruby on Rails applications","language":"Ruby","stars":665,"topics":["receipt","ruby","pdf","pdf-receipt","rails-application"],"license":"MIT","category":"media-processing","readme_excerpt":"Receipts Gem Receipts, Invoices, and Statements for your Rails application that works with any payment provider. Receipts uses Prawn to generate the PDFs. Check out the example PDFs. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Usage To generate a Receipt, Invoice, or Statement, create an instance and provide content to render: Configuration You can specify the default font for all PDFs by defining the following in an initializer: Options You can pass the following options to generate a PDF: recipient - Array of customer details to include. Typically, this is name, address, email, VAT ID, etc. company - Hash of your company details name - Company name address - Company address email - Company support email address phone - Company phone number - Optional logo - Logo to be displayed on the receipt - Optional This can be either a Path, File, StringIO, or URL. Here are a few examples: display: [] - Customize the company details rendered. By default, renders [:address, :phone, :email] under the company name. Items in the array should be Symbols matching keys in the company hash to be displayed. details - Array of details about the Receipt, Invoice, Statement. Typically, this is receipt numbers, issue date, due date, status, etc. line items - Array of line items to be displayed in table format. footer - String for a message at the bottom of the PDF. font - Hash of paths to font files - Optional logo height - An integer value","default_branch":null,"files":null,"tree":[],"storefront":"/r/excid3","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/excid3/receipts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}