Extras
PdfViewer
Bit.BlazorUI.ExtrasPdfReaderPdf
BitPdfViewer is a native pure-C# pdf viewer for Blazor: it parses pdf files and paints their pages as plain HTML/CSS (or onto a canvas), with no browser plugin and no js library. It ships a full reading toolbar - navigation, zoom and fit modes, page layouts, rotation, find, thumbnails, bookmarks, attachments and layers, printing, download, presentation and fullscreen - and everything the toolbar does is on the public API too.
Events & accessibility
The events a viewer raises, binding the page, zoom and rotation, localized strings, and the keyboard and screen readers.
Events
Every state change is reported: loading, page, zoom, rotation and sidebar, each rendered page
(OnPageRendered), load progress of a URL source (OnProgress), non-fatal parse
diagnostics (OnWarnings) and failures (OnError). OnDownloading and
OnPrinting run first, whatever started them (toolbar, shortcut or code): this one renames the
download and can block printing.
No document loaded.
Events:
Binding
CurrentPage, Zoom and Rotation are two-way bindable. Bound one way (no
Changed callback) the value is the host's to control, and the reader's moves arrive through the
events instead.
No document loaded.
Localization
Every string the viewer shows or announces comes from Strings (a BitPdfViewerStrings); set
only the ones you replace.
Kein Dokument geladen.
Keyboard & accessibility
With focus inside the viewer the familiar shortcuts work (and override the browser's Ctrl+
F / P / S), and each toolbar button announces its own through
aria-keyshortcuts; EnableKeyboardShortcuts=false hands them back. The
thumbnails are a listbox and the bookmarks a tree, each one tab stop moved by the arrow keys. Each page
is a named group whose text is read once, its links are named tab stops, and page moves are
announced; the dialogs trap focus and close on Esc. A disabled viewer
(Disabled) keeps showing the document with its chrome inert.
n j PageDown next page, p k PageUp previous
→ ↓ Space next, ← ↑ Shift+Space previous - one page at a time
Home End first / last page
Ctrl++ Ctrl+- Ctrl+0 zoom in / out / 100%
r Shift+r rotate clockwise / counter-clockwise
Ctrl+F Ctrl+G Shift+Ctrl+G find / next / previous
Ctrl+P Ctrl+S print / download, Ctrl+Alt+P present
F4 toggle the sidebar, Esc close the find box, a dialog or presentation mode
No document loaded.
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.