# paperSizeToPixels

Canonical: https://docs.shumoku.dev/ja/library/api/paperSizeToPixels
Language: ja

@shumoku/core · 0.4.0 · function

# paperSizeToPixels

[ソース](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L1251)

APIの説明は英語のcanonical sourceを表示しています。

Convert paper size to pixels at given DPI

```
paperSizeToPixels(size: PaperSize, orientation?: PaperOrientation, dpi?: number): { height: number; width: number }
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `size` | `PaperSize` | 追加説明はありません。 | `—` |
| `orientation` | `PaperOrientation` | 追加説明はありません。 | `'portrait'` |
| `dpi` | `number` | 追加説明はありません。 | `96` |

## 戻り値

```
{ height: number; width: number }
```

[`libs/@shumoku/core/src/models/types.ts:1251`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L1251)
