Struct chrome_remote_interface_model::page::PrintToPdfCommandBuilder [−][src]
pub struct PrintToPdfCommandBuilder { /* fields omitted */ }
Page
and Debugger
and DOM
and IO
and Network
and Runtime
only.Implementations
Display header and footer. Defaults to false.
Print background graphics. Defaults to false.
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 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.
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.
experimental
only.return as stream
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrintToPdfCommandBuilder
impl Send for PrintToPdfCommandBuilder
impl Sync for PrintToPdfCommandBuilder
impl Unpin for PrintToPdfCommandBuilder
impl UnwindSafe for PrintToPdfCommandBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more