Skip to content

Commit

Permalink
Document page_size option. Closes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Jan 17, 2023
1 parent 29f1320 commit f6f7f85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ Receipts.default_font = {
}
```


### Options

You can pass the following options to generate a PDF:
Expand Down Expand Up @@ -130,6 +129,15 @@ Here's an example of where each option is displayed.

See [the Prawn docs](https://prawnpdf.org/api-docs/2.3.0/Prawn/Text.html#text-instance_method) for more information.


##### Page Size

You can specify a different page size by passing in the `page_size` keyword argument:

```ruby
receipt = Receipts::Receipt.new page_size: "A4"
```

### Internationalization (I18n)

You can use `I18n.t` when rendering your receipts to internationalize them.
Expand Down

0 comments on commit f6f7f85

Please sign in to comment.