PrintToPDFRequest

data class PrintToPDFRequest(landscape: Boolean?, displayHeaderFooter: Boolean?, printBackground: Boolean?, scale: Double?, paperWidth: Double?, paperHeight: Double?, marginTop: Double?, marginBottom: Double?, marginLeft: Double?, marginRight: Double?, pageRanges: String?, ignoreInvalidPageRanges: Boolean?, headerTemplate: String?, footerTemplate: String?, preferCSSPageSize: Boolean?, transferMode: String?)

Represents request frame that can be used with Page#printToPDF operation call.

Print page as PDF.

See also

Constructors

PrintToPDFRequest
Link copied to clipboard
fun PrintToPDFRequest(landscape: Boolean? = null, displayHeaderFooter: 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, footerTemplate: String? = null, preferCSSPageSize: Boolean? = null, transferMode: String? = null)

Properties

displayHeaderFooter
Link copied to clipboard
val displayHeaderFooter: Boolean? = null
Display header and footer.
footerTemplate
Link copied to clipboard
val footerTemplate: String? = null
HTML template for the print footer.
headerTemplate
Link copied to clipboard
val headerTemplate: String? = null
HTML template for the print header.
ignoreInvalidPageRanges
Link copied to clipboard
val ignoreInvalidPageRanges: Boolean? = null
Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'.
landscape
Link copied to clipboard
val landscape: Boolean? = null
Paper orientation.
marginBottom
Link copied to clipboard
val marginBottom: Double? = null
Bottom margin in inches.
marginLeft
Link copied to clipboard
val marginLeft: Double? = null
Left margin in inches.
marginRight
Link copied to clipboard
val marginRight: Double? = null
Right margin in inches.
marginTop
Link copied to clipboard
val marginTop: Double? = null
Top margin in inches.
pageRanges
Link copied to clipboard
val pageRanges: String? = null
Paper ranges to print, e.g., '1-5, 8, 11-13'.
paperHeight
Link copied to clipboard
val paperHeight: Double? = null
Paper height in inches.
paperWidth
Link copied to clipboard
val paperWidth: Double? = null
Paper width in inches.
preferCSSPageSize
Link copied to clipboard
val preferCSSPageSize: Boolean? = null
Whether or not to prefer page size as defined by css.
printBackground
Link copied to clipboard
val printBackground: Boolean? = null
Print background graphics.
scale
Link copied to clipboard
val scale: Double? = null
Scale of the webpage rendering.
transferMode
Link copied to clipboard
val transferMode: String? = null
return as stream

Sources

jvm source
Link copied to clipboard