From 51934db382f225454cf152a8657eb03789be63c4 Mon Sep 17 00:00:00 2001 From: Zhihui Song Date: Sun, 8 Nov 2026 18:53:41 +0800 Subject: [PATCH] docs: record the PDF loading timeout and lifetime limitations --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4947c4a..c85d93d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,11 @@ The narrow changes used by craft-print are: An unsuccessful job requests cancellation; the status connection is unadvised before its COM apartment is released. The timeout does not bound calls into a printer driver or an interactive output-file dialog. +- PDF loading uses a read-only file-backed stream, but `LoadFromStreamAsync` is + currently joined without a deadline. The completion timeout above does not bound + document loading. Adding cancellation requires keeping the stream and temporary + file alive until the native operation has actually stopped; returning from a + timeout alone is not sufficient. This remains a known limitation of the loader. - `WinPdfPrinter::print_with_progress(path, ticket, callback)` reports `(processed, total)` after each successful Direct2D AddPage, preserving one job and its ticket. These counts measure page processing, never physical printing or terminal success.