Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/changes/1.x/1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Bug fixes

- Set writeAttribute return type by [@radarhere](https://github.com/radarhere) fixing [#2204](https://github.com/PHPOffice/PHPWord/issues/2204) in [#2776](https://github.com/PHPOffice/PHPWord/pull/2776)
- Add additional sizes to Paper [@rasamassen](https://github.com/rasamassen), partially fixing [#1656](https://github.com/PHPOffice/PHPWord/issues/1656), in [#2830](https://github.com/PHPOffice/PHPWord/pull/2830)

### Miscellaneous

Expand All @@ -16,4 +17,4 @@

### BC Breaks

### Notes
### Notes
9 changes: 7 additions & 2 deletions src/PhpWord/Style/Paper.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,18 @@ class Paper extends AbstractStyle
* @var array
*/
private $sizes = [
'Letter' => [8.5, 11, 'in'],
'Tabloid' => [11, 17, 'in'],
'Ledger' => [17, 11, 'in'],
'Legal' => [8.5, 14, 'in'],
'Statement' => [5.5, 8.5, 'in'],
'Executive' => [7.25, 10.5, 'in'],
'A3' => [297, 420, 'mm'],
'A4' => [210, 297, 'mm'],
'A5' => [148, 210, 'mm'],
'B4' => [250, 353, 'mm'],
'B5' => [176, 250, 'mm'],
'Folio' => [8.5, 13, 'in'],
'Legal' => [8.5, 14, 'in'],
'Letter' => [8.5, 11, 'in'],
];

/**
Expand Down
Loading