Struct chrome_remote_interface_model::page::PrintToPdfCommand[][src]

pub struct PrintToPdfCommand { /* fields omitted */ }

Print page as PDF.

Implementations

impl PrintToPdfCommand[src]

pub fn builder() -> PrintToPdfCommandBuilder[src]

pub fn landscape(&self) -> Option<&bool>[src]

Paper orientation. Defaults to false.

Display header and footer. Defaults to false.

pub fn print_background(&self) -> Option<&bool>[src]

Print background graphics. Defaults to false.

pub fn scale(&self) -> Option<&f64>[src]

Scale of the webpage rendering. Defaults to 1.

pub fn paper_width(&self) -> Option<&f64>[src]

Paper width in inches. Defaults to 8.5 inches.

pub fn paper_height(&self) -> Option<&f64>[src]

Paper height in inches. Defaults to 11 inches.

pub fn margin_top(&self) -> Option<&f64>[src]

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

pub fn margin_bottom(&self) -> Option<&f64>[src]

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

pub fn margin_left(&self) -> Option<&f64>[src]

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

pub fn margin_right(&self) -> Option<&f64>[src]

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

pub fn page_ranges(&self) -> Option<&String>[src]

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

pub fn ignore_invalid_page_ranges(&self) -> Option<&bool>[src]

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

pub fn header_template(&self) -> Option<&String>[src]

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.

pub fn footer_template(&self) -> Option<&String>[src]

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

pub fn prefer_css_page_size(&self) -> Option<&bool>[src]

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.

pub fn transfer_mode(&self) -> Option<&PrintToPdfCommandTransferMode>[src]

return as stream

Trait Implementations

impl Clone for PrintToPdfCommand[src]

impl Command for PrintToPdfCommand[src]

type Return = PrintToPdfReturn

Return type.

impl Debug for PrintToPdfCommand[src]

impl<'de> Deserialize<'de> for PrintToPdfCommand[src]

impl Serialize for PrintToPdfCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.