Impossible OS Docs

PDF App (Recto)

What is it?

The PDF app of Impossible OS will be Recto, an open-source PDF viewer, OCR tool and document converter written in C++23 with its own PDF engine and its own interface toolkit. Impossible OS bundles it instead of writing a second, smaller PDF reader: Recto's source is imported at a pinned commit, built for Impossible OS, and registered as the handler for .pdf files. Nothing is built yet, here or in Recto itself.

How does it work?

Today. No PDF code exists in Impossible OS, and user mode has a C library but no C++ runtime. Recto is at its first milestone (a repository and build scaffold) and targets Windows 11 directly. The drawing, text and controls it will be backed by are the existing gfx.h, font_mgr.h and controls.h and the engines planned on top of them.

Planned design. Recto is ported with a backend, not run as an unmodified Windows program. A platform seam inside Recto separates its engine and toolkit from the operating system; Windows keeps its Direct2D implementation, and Impossible OS supplies its own on the UI framework engines.

flowchart TD
    Src[Recto source at a pinned commit] --> Engine[recto-pdf engine and recto-core]
    Src --> Toolkit[recto-ui toolkit]
    Runtime[C++23 runtime: libc++, libc++abi, libunwind] --> Engine
    Runtime --> Toolkit
    Seam[Recto platform seam] --> Engine
    Seam --> Toolkit
    Backend[Impossible OS backend: graphics, text, composition, input] --> Seam
    Engine --> App[Recto app]
    Toolkit --> App
    App --> Shell[Default handler, thumbnails, preview, properties, search]
  1. Import. Recto's source is copied in at a pinned commit and never edited locally; changes go into Recto and are re-imported.
  2. C++ runtime. LLVM's libc++, libc++abi and libunwind are built for user mode.
  3. Platform seam and backend. Recto's engine and toolkit call one interface; Impossible OS implements it with its own files, threads, drawing, text and input.
  4. App and integration. Recto runs as the system PDF app and supplies thumbnails, the preview pane, file properties and search text for PDFs.
  5. Later features. OCR, conversion and page organizing arrive as Recto ships them, by importing a newer commit that passes the conformance suite.

Under reconciliation (2026-11-27). The approved design in the Impossible SDK repository gives Recto one shipping build, Recto.exe and recto-cli.exe, made with the SDK toolchain from imported source, with no Impossible OS backend. Sections 11 to 20 of the roadmap file stay as written until section 21 lists a new owner and a test for every obligation of each of them; then each is replaced, never before. Nothing in this paragraph is built yet.

What are its interfaces?

Interface Status
gfx_* drawing, ttf_* text, scroll bars Shipped
C++23 user-mode runtime Planned in this roadmap
recto-platform seam and the Impossible OS backend Planned, in Recto and in this roadmap
C:\Program Files\Recto\Recto.exe and recto-cli.exe Planned in this roadmap
scripts/vendor-recto.sh, scripts/test-recto.sh Planned in this roadmap

How do I use it?

It cannot be launched yet. Nothing in this roadmap is runnable today.

To update the bundled Recto once it exists: change the pinned commit, re-run the import script, rebuild, and run the conformance suite. A hand edit under the imported tree is refused by the import script's check.

What is not implemented yet?

Nothing in this roadmap has started. Its open sections, in build order:

The in-house parser, renderer and viewer window this roadmap used to plan are superseded by Recto and are kept only as pointers. Six sections wait on Recto's own milestones, because the code they build does not exist upstream yet.

How does it compare with Windows 11 and Linux?

Windows 11 opens PDFs in Microsoft Edge's built-in reader, and Linux desktops ship Evince or Okular. Recto is planned as one native app with no browser engine, with OCR for scanned files, conversion and page organizing built in, which neither system's default viewer includes.

See also

Impossible OS is free software under the GPL-3.0-only license. Last updated Privacy Edit this page on GitHub