data class PrintToPDFRequest
(source)
Represents request frame that can be used with Page#printToPDF operation call.
Print page as PDF.
Link
Page#printToPDF method documentation.
See Also
PrintToPDFRequest(landscape: Boolean? = null, : Boolean? = null, printBackground: Boolean? = null, scale: Double? = null, paperWidth: Double? = null, paperHeight: Double? = null, marginTop: Double? = null, marginBottom: Double? = null, marginLeft: Double? = null, marginRight: Double? = null, pageRanges: String? = null, ignoreInvalidPageRanges: Boolean? = null, headerTemplate: String? = null, : String? = null, preferCSSPageSize: Boolean? = null, transferMode: String? = null)
Represents request frame that can be used with Page#printToPDF operation call. |
val displayHeaderFooter: Boolean?
Display header and footer. Defaults to false. |
|
val footerTemplate: String?
HTML template for the print footer. Should use the same format as the |
|
val headerTemplate: String?
HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them: |
|
val ignoreInvalidPageRanges: Boolean?
Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false. |
|
val landscape: Boolean?
Paper orientation. Defaults to false. |
|
val marginBottom: Double?
Bottom margin in inches. Defaults to 1cm (~0.4 inches). |
|
val marginLeft: Double?
Left margin in inches. Defaults to 1cm (~0.4 inches). |
|
val marginRight: Double?
Right margin in inches. Defaults to 1cm (~0.4 inches). |
|
val marginTop: Double?
Top margin in inches. Defaults to 1cm (~0.4 inches). |
|
val pageRanges: String?
Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages. |
|
val paperHeight: Double?
Paper height in inches. Defaults to 11 inches. |
|
val paperWidth: Double?
Paper width in inches. Defaults to 8.5 inches. |
|
val preferCSSPageSize: Boolean?
Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size. |
|
val printBackground: Boolean?
Print background graphics. Defaults to false. |
|
val scale: Double?
Scale of the webpage rendering. Defaults to 1. |
|
val transferMode: String?
return as stream |