Struct chrome_remote_interface_model::page::PrintToPdfCommand [−][src]
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.
pub fn display_header_footer(&self) -> Option<&bool>
[src]
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 datetitle
: document titleurl
: document locationpageNumber
: current page numbertotalPages
: 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]
fn clone(&self) -> PrintToPdfCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for PrintToPdfCommand
[src]
type Return = PrintToPdfReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for PrintToPdfCommand
[src]
impl<'de> Deserialize<'de> for PrintToPdfCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for PrintToPdfCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrintToPdfCommand
[src]
impl Send for PrintToPdfCommand
[src]
impl Sync for PrintToPdfCommand
[src]
impl Unpin for PrintToPdfCommand
[src]
impl UnwindSafe for PrintToPdfCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,