From 0e4943cb5e7b50bd4eb01e8c580b97603c8f9e3d Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Tue, 10 Nov 2026 01:55:59 +0100 Subject: [PATCH] print: winprint 3c978dfc: pages at the job's resolution, QName ticket values, padded integers (#761) winprint.rs#19 draws each page at the resolution the job's ticket asks for instead of ~96 dpi (storytold/pdfcraft#4941, #2676). #12 writes QName property values as prefix:local, which drivers such as the Microsoft IPP Class Driver otherwise reject when merging the ticket (storytold/pdfcraft#3823). #3 accepts whitespace around xsd:integer values in PrintCapabilities (Toshiba Universal Printer 2, storytold/pdfcraft#2430). The public API craft-print uses is unchanged; only the rev and the lockfile move. --- Cargo.lock | 3 ++- crates/print/Cargo.toml | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0c741c3a..8351dfda 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7106,7 +7106,7 @@ dependencies = [ [[package]] name = "winprint" version = "0.2.1" -source = "git+https://github.com/storytold/winprint.rs?rev=51934db382f225454cf152a8657eb03789be63c4#51934db382f225454cf152a8657eb03789be63c4" +source = "git+https://github.com/storytold/winprint.rs?rev=3c978dfcf3d460577fabd87aeea7a84ffdcfb396#3c978dfcf3d460577fabd87aeea7a84ffdcfb396" dependencies = [ "flate2", "fmt-derive", @@ -7121,6 +7121,7 @@ dependencies = [ "windows", "windows-core", "windows-implement", + "windows-numerics", "xml", ] diff --git a/crates/print/Cargo.toml b/crates/print/Cargo.toml index 9edae26e..7dc5bb62 100644 --- a/crates/print/Cargo.toml +++ b/crates/print/Cargo.toml @@ -30,8 +30,12 @@ log = "0.4" # creates the Direct2D factory multi-threaded, since Windows.Data.Pdf draws on its own worker # threads (storytold/pdfcraft#5006). File-backed PDF loading avoids StorageFile access # denial without whole-job buffering; includes the #15 test cleanup and explicit WinRT -# feature. Pinned to an immutable revision; review before bumping. -winprint = { git = "https://github.com/storytold/winprint.rs", rev = "51934db382f225454cf152a8657eb03789be63c4", default-features = false } +# feature. It draws each page at the job's resolution rather than ~96 dpi (winprint.rs#19, +# storytold/pdfcraft#4941), writes QName values as prefix:local so drivers accept the merged +# ticket (winprint.rs#12, storytold/pdfcraft#3823), and reads whitespace-padded integers in +# PrintCapabilities (winprint.rs#3, storytold/pdfcraft#2430). Pinned to an immutable revision; +# review before bumping. +winprint = { git = "https://github.com/storytold/winprint.rs", rev = "3c978dfcf3d460577fabd87aeea7a84ffdcfb396", default-features = false } # GetDefaultPrinter (MIT). winsafe = { version = "0.0.29", default-features = false, features = ["winspool"] } # The job file's private folder.