Skip to content

Commit

Permalink
Merge pull request #18 from h1dd3nsn1p3r/development
Browse files Browse the repository at this point in the history
🐛 Fix: Create function promise now returns resolve or reject.
  • Loading branch information
h1dd3nsn1p3r authored Jan 12, 2024
2 parents 3f9527f + 94c3150 commit 1d1c622
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 35 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ This is the information about your company. It is an object with the following s
```js
const company = {
logo: "<svg>...</svg>", // Optional. SVG logo of your company.
name: "Festrol Corp.", // Required.
name: "Festrol Corp.", // Optional or required if logo is not supplied.
address: "1711 W. El Segundo Blvd, Hawthorne, \n Canada - 90250", // Optional.
phone: "Tel: (+11) 245 543 903", // Optional.
email: "[email protected]", // Optional.
Expand All @@ -131,7 +131,9 @@ const company = {
}
```

For now, only **SVG logo** can be used. The name of the company is required. Rest of the fields are optional.
For now, only **svg logo** can be used. If you wish to use logo & do not want the company name, then do not pass the `name` field. Rest of the fields are optional.

```js

### Invoice

Expand Down Expand Up @@ -285,4 +287,3 @@ Refer to [releases](https://github.com/h1dd3nsn1p3r/pdf-invoice/releases) sectio
- [ ] Add design/style options.
- [ ] Add configuration options.
- [ ] Add support for multi-language.
- [ ] Better error handling.
8 changes: 4 additions & 4 deletions dist/class/invoice.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/class/invoice.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 1d1c622

Please sign in to comment.