Skip to content

Latest commit

 

History

History
executable file
·
19 lines (12 loc) · 1.59 KB

README.md

File metadata and controls

executable file
·
19 lines (12 loc) · 1.59 KB

Generate an Invoice PDF using Cloudflare Workers

The open-source PDF generation service powering Lazy Invoice (code), an open-source website for quickly generating PDF invoices on the fly. Powered by Cloudflare Workers.

Example PDF →

API

Requests are made as GET against http://generate.invoice.workers.dev. To customize the PDF, set at least the query params company, customer, description, amount, and total, for example:

https://generate.invoice.workers.dev/
  ?company=Ginza Natsuno \n4F Marunouchi 1-5-1 \nChiyoda-ku, Tokyo, Japan
  &customer=Sukiyabashi Jiro \n2-15, Ginza 4-chome \nCity Chuo, Tokyo, Japan
  &description=4 pairs of rounded red sandalwood chopsticks
  &amount=4 × ¥8,000 per pair
  &total=¥32,000

View this example PDF