pub struct PdfiumPrinter { /* private fields */ }Expand description
A printer that uses Pdfium to print PDF documents.
§Color management
PDFium ignores the rendering intents of documents. It converts colors in ICC-based color spaces to sRGB with the perceptual intent and black point compensation, not with relative colorimetric, the default of PDF. This only matters for profiles with a separate perceptual rendering, or whose black is lighter than absolute black: with most CMYK profiles of printing conditions, shadows print darker.
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_with_progress(
&self,
path: &Path,
options: PrintTicket,
on_progress: &mut dyn FnMut(&PrintProgress) -> ControlFlow<()>,
) -> Result<PrintOutcome, PdfiumPrinterError>
fn print_with_progress( &self, path: &Path, options: PrintTicket, on_progress: &mut dyn FnMut(&PrintProgress) -> ControlFlow<()>, ) -> Result<PrintOutcome, PdfiumPrinterError>
Print the file with the given options, reporting progress to
on_progress. Read moreAuto Trait Implementations§
impl Freeze for PdfiumPrinter
impl RefUnwindSafe for PdfiumPrinter
impl Send for PdfiumPrinter
impl Sync for PdfiumPrinter
impl Unpin for PdfiumPrinter
impl UnsafeUnpin 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