Struct winprint::printer::PdfiumPrinter
source · pub struct PdfiumPrinter { /* private fields */ }
Expand description
A printer that uses Pdfium to print PDF documents.
Implementations§
source§impl PdfiumPrinter
impl PdfiumPrinter
sourcepub fn new(printer: PrinterDevice) -> Self
pub fn new(printer: PrinterDevice) -> Self
Create a new PdfiumPrinter
for the given printer device.
Trait Implementations§
source§impl FilePrinter for PdfiumPrinter
impl FilePrinter for PdfiumPrinter
source§type Options = PrintTicket
type Options = PrintTicket
The options type for the printer.
source§type Error = PdfiumPrinterError
type Error = PdfiumPrinterError
The error type for the printer.
source§fn print(
&self,
path: &Path,
options: PrintTicket,
) -> Result<(), PdfiumPrinterError>
fn print( &self, path: &Path, options: PrintTicket, ) -> Result<(), PdfiumPrinterError>
Print the file with the given options.
Auto Trait Implementations§
impl Freeze for PdfiumPrinter
impl RefUnwindSafe for PdfiumPrinter
impl Send for PdfiumPrinter
impl Sync for PdfiumPrinter
impl Unpin for PdfiumPrinter
impl UnwindSafe for PdfiumPrinter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more