Visit https://generate.invoice.workers.dev to view a PDF generated with all of the default input values.
To customize, set query params company
, customer
, description
, amount
, and total
:
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
You can also generate a PDF using a UI by visiting lazy.invoice.workers.dev, for which this backend Cloudflare Worker script was built.
This project uses the Workers CLI in order to build and publish your script to Cloudflare Workers.
To customize this project for your own purposes, follow these steps:
- Install the Workers CLI.
- Clone the repo into a new directory.
- Follow the Workers configuration instructions to configure the CLI. Essentially this amounts to running one Workers CLI command and then editing the
wrangler.toml
file in this project with your Cloudflare Account ID and the secondary subdomain of your choosing for deployment.
MIT