Skip to content

Commit f6f7f85

Browse files
committed
Document page_size option. Closes #25
1 parent 29f1320 commit f6f7f85

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ Receipts.default_font = {
7676
}
7777
```
7878

79-
8079
### Options
8180

8281
You can pass the following options to generate a PDF:
@@ -130,6 +129,15 @@ Here's an example of where each option is displayed.
130129
131130
See [the Prawn docs](https://prawnpdf.org/api-docs/2.3.0/Prawn/Text.html#text-instance_method) for more information.
132131
132+
133+
##### Page Size
134+
135+
You can specify a different page size by passing in the `page_size` keyword argument:
136+
137+
```ruby
138+
receipt = Receipts::Receipt.new page_size: "A4"
139+
```
140+
133141
### Internationalization (I18n)
134142
135143
You can use `I18n.t` when rendering your receipts to internationalize them.

0 commit comments

Comments
 (0)