docs: make pdf options strings in java and C# (#5369)

This commit is contained in:
Yury Semikhatsky 2021-02-08 18:07:27 -08:00 committed by GitHub
parent 002d8ef5a7
commit ef9995e694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.
@ -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]>