{"id":15353772,"url":"https://github.com/westonganger/prawn_invoice","last_synced_at":"2026-05-17T00:45:02.632Z","repository":{"id":66556479,"uuid":"199711377","full_name":"westonganger/prawn_invoice","owner":"westonganger","description":"Dead simple Prawn based PDF invoice generator with support for custom invoice templates","archived":false,"fork":false,"pushed_at":"2019-07-30T20:30:37.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T19:26:16.146Z","etag":null,"topics":["invoice","invoice-builder","invoice-generator","prawn","prawn-pdf","rails","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/westonganger.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T19:04:29.000Z","updated_at":"2019-07-30T20:30:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"afdb0b94-0508-4933-934c-2ccc67644f2a","html_url":"https://github.com/westonganger/prawn_invoice","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"86710e962b2b739688598044f63eb4fc41711270"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/westonganger/prawn_invoice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fprawn_invoice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fprawn_invoice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fprawn_invoice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fprawn_invoice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/prawn_invoice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Fprawn_invoice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273842867,"owners_count":25177921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["invoice","invoice-builder","invoice-generator","prawn","prawn-pdf","rails","ruby"],"created_at":"2024-10-01T12:15:10.891Z","updated_at":"2026-05-17T00:44:57.612Z","avatar_url":"https://github.com/westonganger.png","language":"Ruby","funding_links":["https://ko-fi.com/A5071NK'"],"categories":[],"sub_categories":[],"readme":"# Prawn Invoice\n\n\u003ca href=\"https://badge.fury.io/rb/prawn_invoice\" target=\"_blank\"\u003e\u003cimg height=\"21\" style='border:0px;height:21px;' border='0' src=\"https://badge.fury.io/rb/prawn_invoice.svg\" alt=\"Gem Version\"\u003e\u003c/a\u003e\n\u003ca href='https://travis-ci.org/westonganger/prawn_invoice' target='_blank'\u003e\u003cimg height='21' style='border:0px;height:21px;' src='https://travis-ci.org/westonganger/prawn_invoice.svg?branch=master' border='0' alt='Build Status'\u003e\u003c/a\u003e\n\u003ca href='https://rubygems.org/gems/prawn_invoice' target='_blank'\u003e\u003cimg height='21' style='border:0px;height:21px;' src='https://ruby-gem-downloads-badge.herokuapp.com/prawn_invoice?label=rubygems\u0026type=total\u0026total_label=downloads\u0026color=brightgreen' border='0' alt='RubyGems Downloads' /\u003e\u003c/a\u003e\n\u003ca href='https://ko-fi.com/A5071NK' target='_blank'\u003e\u003cimg height='22' style='border:0px;height:22px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee'\u003e\u003c/a\u003e\n\nDead simple Prawn based PDF invoice generator with support for custom invoice templates\n\n- Dead simple setup and configuration \n- Custom Templates\n- Optional Rails Integration\n\n# TBD\n\n- Implement the `:default` invoice template\n- Document \u0026 Finalize template schema implementation\n\n# Usage\n\n```ruby\n@data = {}\n\nFile.write(\"path/to/invoice.pdf\", wb) do |f|\n  f.write PrawnInvoice.to_pdf(data: @data)\nend\n\nPrawnInvoice.to_pdf_file(filename: \"path/to/invoice.pdf\", data: @data)\n```\n\nOr use in your Rails controllers\n\n```ruby\nclass InvoiceController \u003c ApplicationController\n  def index\n    @data = {}\n\n    render pdf: PrawnInvoice.to_pdf(data: @data)\n  end\n```\n\n# Custom Templates\n\nCustom invoice templates classes can be implemented as required.\n\nUse the `:default` template class as an example:\n\nhttps://github.com/westonganger/prawn_resume/blob/master/lib/prawn_resume/templates/default.rb\n\nOnce implemented use it like so:\n\n\n```ruby\nPrawnInvoice.to_pdf(data: @data, template: :default)\n\n# OR\n\nPrawnInvoice.to_pdf(data: @data, template: PrawnInvoice::Templates::Default)\n```\n\n# Credits\n\nCreated \u0026 Maintained by [Weston Ganger](https://westonganger.com) - [@westonganger](https://github.com/westonganger)\n\nFor any consulting or contract work please contact me via my company website: [Solid Foundation Web Development](https://solidfoundationwebdev.com)\n\n[![Solid Foundation Web Development Logo](https://solidfoundationwebdev.com/logo-sm.png)](https://solidfoundationwebdev.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fprawn_invoice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Fprawn_invoice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Fprawn_invoice/lists"}