pdfcraft/xtask/src
pechnikov2026-star 66edead348
demo-pdf: two fixes so xtask demo-pdf and xtask screenshots work on Windows (#954)
* demo-pdf: build a working file:// URL on Windows

Windows Path::canonicalize returns a verbatim \?\C:\... path. After the
backslash swap that is //?/C:/..., which the Unix/Windows branch then
misreads as an absolute Unix path, producing file:////?/C:/... Chrome
fails to load that URL and prints one blank page, so on Windows
cargo xtask demo-pdf and cargo xtask screenshots always fail with
"Chrome produced 1 pages but the showcase layout expects 12".

Strip the //?/ prefix before classifying, and add a regression test.

* demo-pdf: don't accept Skia's incremental %%EOF writes as a finished PDF

Chrome writes the print-to-pdf output incrementally and every increment
ends with its own %%EOF, so the completion poll accepted the first
~29 KB increment (one page of twelve) as final and killed Chrome
mid-print. Require the file size to stay quiet for 10 consecutive
500 ms polls before treating the file as finished; waiting for process
exit alone is not enough because some Chrome builds linger after
writing.

---------

Co-authored-by: pechnikov2026-star <pechnikov2026-star@users.noreply.github.com>
2026-10-11 13:16:12 -04:00
..
demo_pdf demo-pdf: two fixes so xtask demo-pdf and xtask screenshots work on Windows (#954) 2026-10-11 13:16:12 -04:00
assets.rs Refs #103: ship the OCR models in the desktop release packages (#630) 2026-10-09 18:42:23 -04:00
corpus.rs D1: pin and verify the pdf.js corpus (#339) 2026-10-09 21:26:54 -04:00
fuzz.rs Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
gates.rs feat(macos): declare document icon file for PDFs in Info.plist (#910) (#933) 2026-10-11 12:32:29 -04:00
layers.rs UI.9: preserve PDFCraft panels and document lifecycle 2026-10-10 15:46:23 -06:00
macos_integration.rs macOS: add native document integration diagnostics (#653) 2026-10-09 21:35:51 -04:00
main.rs macOS: add native document integration diagnostics (#653) 2026-10-09 21:35:51 -04:00
parity.rs M0.8: parity/acrobat-features.toml (826 features) + xtask parity (schema, registry/tool/test cross-checks, tier/area report) in ci; fuzzer skips known-hang seeds 2026-10-01 09:34:02 -04:00
screenshots.rs M14: Arabic and Hebrew file names render in the tab strip, recent files and Properties (#285) 2026-10-08 10:46:58 -04:00
version.rs xtask: version test uses gates::root (fixes the xtask test build) 2026-10-03 00:42:57 -04:00