Files
paseo/plugin-examples/pdf-panel
Mohamed Boudra 58edbdcd0e fix(plugins): file events are objects, deletion is a typed error, DocumentFrame owns its fallback
- watch listeners receive { type: "changed" } | { type: "deleted" }, so later
  versions can add fields without breaking them.
- PluginFileDeletedError joins PluginFileConflictError. The read hooks report a
  deleted file with it, and a write over a deleted file rejects with it; Source
  shows that as the deleted notice. PluginFileConflictError now means only
  "changed on disk".
- DocumentFrame on Android shows Paseo's "<TYPE> files can't be shown on this
  device" message for documents its WebView cannot display, so the PDF example
  is useFileUrl + Loading + DocumentFrame with no platform branch.
2026-10-20 08:18:20 +02:00
..

PDF file panel example

Requires Paseo 0.13.0 or later. Install this directory with paseo plugin install /absolute/path/to/plugin-examples/pdf-panel, then open a .pdf in Files.

The panel resolves the file's local URL with useFileUrl, shows Loading until it does, and passes it to DocumentFrame. Where a platform cannot show a PDF inline (Android), DocumentFrame says so. The plugin does not construct daemon URLs.

See the file panel reference.

Inline PDF rendering needs a daemon from Paseo 0.13.0 or later; see the DocumentFrame reference.