mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 17:52:49 +00:00
- 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.
670 B
670 B
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.