mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 10:08:00 -06:00
16 lines
810 B
Rust
16 lines
810 B
Rust
//! System print spooler supplied by craft-print. PDF composition and permission checks
|
|
//! stay in PdfCraft; these adapters retain the application's print-error surface.
|
|
|
|
pub use craft_print::{
|
|
Duplex, HANDLED_OPTIONS, HAS_PRINTER_PREFERENCES, Job, Printer, PrinterOption, Scaling, lp_args, lpstat_command, parse_lpoptions, parse_lpstat,
|
|
parse_lpstat_e, parse_ppd, parse_windows_printers, ppd_text, printer_options, printers, printers_parsed,
|
|
};
|
|
|
|
pub fn submit(pdf: &[u8], job: &Job) -> Result<String, crate::PrintError> {
|
|
craft_print::submit(pdf, job).map_err(|e| crate::PrintError::Spool(e.to_string()))
|
|
}
|
|
|
|
pub fn open_printer_preferences(printer: &str) -> Result<(), crate::PrintError> {
|
|
craft_print::open_printer_preferences(printer).map_err(|e| crate::PrintError::Spool(e.to_string()))
|
|
}
|