page_dinsize_to_mm¶
- emlib.misc.page_dinsize_to_mm(pagesize, pagelayout)[source]¶
Return the (height, width) for a given DIN size and page orientation
- Parameters:
pagesize (
str
) – size as DIN string (a3, a4, etc)pagelayout (
str
) – portrait or landscape
- Return type:
tuple
[float
,float
]- Returns:
a tuple (height, width) in mm
Format
Width x Heigh (mm)
A0
841 x 1189
A1
594 x 841
A2
420 x 594
A3
297 x 420
A4
210 x 297
A5
148 x 210
A6
105 x 148
A7
74 x 105