Skip to content

Commit

Permalink
Added page size B5 (#246)
Browse files Browse the repository at this point in the history
* Added page size B5

* Fixed indentation
  • Loading branch information
MikhailVoronin authored Dec 30, 2023
1 parent 70ecf4e commit 49105d8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public class PageSize {
new PropertyValue(CSSPrimitiveValue.CSS_MM, 250f, "250mm"),
new PropertyValue(CSSPrimitiveValue.CSS_MM, 353f, "353mm"));

/**
* ISO B5 media: 176mm wide by 250 high
*/
public static final PageSize B5 = new PageSize(
new PropertyValue(CSSPrimitiveValue.CSS_MM, 176f, "176mm"),
new PropertyValue(CSSPrimitiveValue.CSS_MM, 250f, "250mm"));

/**
* North American letter media: 8.5 inches wide and 11 inches high
*/
Expand Down Expand Up @@ -90,6 +97,7 @@ public class PageSize {
SIZE_MAP.put("a5", A5);
SIZE_MAP.put("b3", B3);
SIZE_MAP.put("b4", B4);
SIZE_MAP.put("b5", B5);
SIZE_MAP.put("letter", LETTER);
SIZE_MAP.put("legal", LEGAL);
SIZE_MAP.put("ledger", LEDGER);
Expand Down

0 comments on commit 49105d8

Please sign in to comment.