Skip to content

windows-ui: PdfView is a placeholder STATIC label — no real PDF rendering #6613

Description

@proggeramlug

PdfView on Windows is a stub-with-state: a STATIC control showing [PDF: name — page X/Y @ Z%], with page state tracked but no page pixels ever rendered. macOS backs the same widget with PDFKit, so cross-platform apps using PdfView get a text label instead of a document on Windows. Found in the 2026-07-18 Windows audit (main @ 58e555e).

Evidence

  • crates/perry-ui-windows/src/widgets/pdf_view.rs:1-9 — module doc: STATIC control showing "[PDF: filename] page X of Y"; rendering deferred.
  • crates/perry-ui-windows/src/ffi/rich_pdf_map.rs:38-40 — "PdfView (API for creating PDF reports and a Pdf Viewer widget #516) — Win32 stub-with-state... Real page-bitmap rendering... is a follow-up."

Suggested fix

Render real pages via WinRT Windows.Data.Pdf (PdfDocument -> page bitmap blitted into the control), or host WebView2 and use its built-in PDF viewer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew capability or improvementstubsRegistered API that is a no-op / fake / silently wrong — stub-elimination epic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions