Struct chrome_remote_interface_model::page::PrintToPdfCommandBuilder[][src]

pub struct PrintToPdfCommandBuilder { /* fields omitted */ }
This is supported on crate features Page and Debugger and DOM and IO and Network and Runtime only.

Implementations

Paper orientation. Defaults to false.

Display header and footer. Defaults to false.

Print background graphics. Defaults to false.

Scale of the webpage rendering. Defaults to 1.

Paper width in inches. Defaults to 8.5 inches.

Paper height in inches. Defaults to 11 inches.

Top margin in inches. Defaults to 1cm (~0.4 inches).

Bottom margin in inches. Defaults to 1cm (~0.4 inches).

Left margin in inches. Defaults to 1cm (~0.4 inches).

Right margin in inches. Defaults to 1cm (~0.4 inches).

Paper ranges to print, e.g., ‘1-5, 8, 11-13’. Defaults to the empty string, which means print all pages.

Whether to silently ignore invalid but successfully parsed page ranges, such as ‘3-2’. Defaults to false.

HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:

  • date: formatted print date
  • title: document title
  • url: document location
  • pageNumber: current page number
  • totalPages: total pages in the document

For example, <span class=title></span> would generate span containing the title.

HTML template for the print footer. Should use the same format as the headerTemplate.

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.

This is supported on crate feature experimental only.

return as stream

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.