Skip to content
项目

关于

轻松生成 PDF 发票。

商业与金融

这些数字如何统计

可以做什么

  • A4 and US letter paper size
  • Invoice/document name and number
  • Purchaser and provider boxes with addresses and identificaton numbers
  • Payment method box showing banking details including SWIFT and IBAN fields

实测星标增长

24小时
0
7天
-1
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

 

Super simple PDF invoicing. InvoicePrinter is a server, command line program and pure Ruby library to generate PDF invoices in no time. You can use Ruby or JSON as the invoice representation to build the final PDF.

Philosophy

  • Simple, no styling required, no calculation, no money formatting (bring your own)
  • Pure Ruby, no dependency on system libraries or browsers
  • Fast, so you can render invoices on the fly during requests

Examples

Simple invoice

See more usecases in the examples/ directory.

Features

  • A4 and US letter paper size
  • Invoice/document name and number
  • Purchaser and provider boxes with addresses and identificaton numbers
  • Payment method box showing banking details including SWIFT and IBAN fields
  • Issue/due dates box
  • Configurable items' table with item description, breakdown, quantity, unit, price per unit, tax and item's total amount fields
  • Description above the table
  • Final subtotal/tax/total info box
  • Page numbers
  • Configurable field labels & sublabels (optional little labels)
  • Configurable font file
  • Logotype (as image scaled to fit 50px of height)
  • Background (as image)
  • Stamp & signature (as image)
  • QR code (as image)
  • Note
  • JSON format
  • CLI
  • Server
  • Well tested

Documentation

Support

I am developing InvoicePrinter as a free and MIT-licensed library for several years now.

Please consider buying my book or my Rails starter kit so I can work more on Open Source.

Contributing

Contributions are welcome. Make sure the tests are passing before submitting a PR:

$ bundle && bundle exec rake test

You can also quickly regenerate the examples if necessary:

$ ruby regenerate.rb

Copyright

Copyright 2015-2025 © Josef Strzibny. Sponsored by LakyAI. MIT licensed.

探索相关项目

加载中…