Skip to content

Commit

Permalink
docs: make pdf options strings in java and C# (#5369)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 9, 2021
1 parent 002d8ef commit ef9995e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/src/api/class-page.md
Expand Up @@ -1613,16 +1613,31 @@ Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, whic
Paper format. If set, takes priority over [`option: width`] or [`option: height`] options. Defaults to 'Letter'.

### option: Page.pdf.width
* langs: js, python
- `width` <[string]|[float]>

Paper width, accepts values labeled with units.

### option: Page.pdf.width
* langs: csharp, java
- `width` <[string]>

Paper width, accepts values labeled with units.

### option: Page.pdf.height
* langs: js, python
- `height` <[string]|[float]>

Paper height, accepts values labeled with units.

### option: Page.pdf.height
* langs: csharp, java
- `height` <[string]>

Paper height, accepts values labeled with units.

### option: Page.pdf.margin
* langs: js, python
- `margin` <[Object]>
- `top` <[string]|[float]> Top margin, accepts values labeled with units. Defaults to `0`.
- `right` <[string]|[float]> Right margin, accepts values labeled with units. Defaults to `0`.
Expand All @@ -1631,6 +1646,16 @@ Paper height, accepts values labeled with units.

Paper margins, defaults to none.

### option: Page.pdf.margin
* langs: csharp, java
- `margin` <[Object]>
- `top` <[string]> Top margin, accepts values labeled with units. Defaults to `0`.
- `right` <[string]> Right margin, accepts values labeled with units. Defaults to `0`.
- `bottom` <[string]> Bottom margin, accepts values labeled with units. Defaults to `0`.
- `left` <[string]> Left margin, accepts values labeled with units. Defaults to `0`.

Paper margins, defaults to none.

### option: Page.pdf.preferCSSPageSize
- `preferCSSPageSize` <[boolean]>

Expand Down

0 comments on commit ef9995e

Please sign in to comment.