Struct cdp::page::PrintToPdfCommand [] [src]

pub struct PrintToPdfCommand<'a> {
    pub landscape: Option<bool>,
    pub display_header_footer: Option<bool>,
    pub print_background: Option<bool>,
    pub scale: Option<f64>,
    pub paper_width: Option<f64>,
    pub paper_height: Option<f64>,
    pub margin_top: Option<f64>,
    pub margin_bottom: Option<f64>,
    pub margin_left: Option<f64>,
    pub margin_right: Option<f64>,
    pub page_ranges: Option<Cow<'a, str>>,
    pub ignore_invalid_page_ranges: Option<bool>,
}

[Experimental] Print page as PDF.

Command Page.printToPDF

Domain Module: cdp::page
Command Struct: cdp::page::PrintToPdfCommand
Response Struct: cdp::page::PrintToPdfResponse

Fields

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.

Trait Implementations

impl<'a> Clone for PrintToPdfCommand<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for PrintToPdfCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for PrintToPdfCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for PrintToPdfCommand<'a>
[src]

COMMAND_NAME: &'static str = "Page.printToPDF"

impl<'a> SerializeCdpCommand for PrintToPdfCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for PrintToPdfCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for PrintToPdfCommand<'a>
[src]