BootstrapBlazor.PdfReader 7.0.3

Blazor Pdf Reader PDF阅读器 组件

image

示例:

https://blazor.app1.es/pdfReaders

使用方法:

1.nuget包

BootstrapBlazor.PdfReader

2._Imports.razor 文件 或者页面添加 添加组件库引用

@using BootstrapBlazor.Components

3.razor页面

<PdfReader PdfFile="https://densen.es/test/webdev/pdf/sample.pdf" />
           
<PdfReader UrlBase="https://blazor.app1.es/"
           PdfFile="_content/DemoShared/sample.pdf" />

<PdfReader UrlBase="https://blazor.app1.es/"
           PdfFile="_content/DemoShared/sample.pdf" 
           EnableStreamingMode="true"/>

4.参数说明

参数 说明 默认值
PdfStream 用于渲染的文件流,为空则用URL参数读取文件
PdfFile PDF文件路径, https://xx.com/sample.pdf null
Func<string, Task>? OnInfo 信息回调
Func<string, Task>? OnError 错误回调
EnableStreamingMode 使用流化模式,可跨域读取文件 false
UrlBase PDF文件基础路径, (使用流化模式才需要设置), https://xx.com
Height 700
Page 指定页码,如果浏览器支持,将加载PDF并自动滚动到第n页 1
ForceIframe 强制使用 Iframe false
ForcePDFJS 强制使用 PDF.js false
PDFJS_URL PDF.js 浏览器页面路径 内置
Search *查询字符串
View *视图模式 FitV
Pagemode *页面模式 thumbs

*表示PDF.js 专有


Blazor 组件

条码扫描 ZXingBlazor nuget stats

图片浏览器 Viewer

条码扫描 BarcodeScanner

手写签名 Handwritten

手写签名 SignaturePad

定位/持续定位 Geolocation

屏幕键盘 OnScreenKeyboard

百度地图 BaiduMap

谷歌地图 GoogleMap

蓝牙和打印 Bluetooth

PDF阅读器 PdfReader

文件系统访问 FileSystem

光学字符识别 OCR

电池信息/网络信息 WebAPI

AlexChow

今日头条 | 博客园 | 知乎 | Gitee | GitHub

ChuanglinZhou

No packages depend on BootstrapBlazor.PdfReader.

Version Downloads Last updated
9.0.1 4 2025/5/26
9.0.0 1 2025/5/26
9.0.0-beta02 1 2025/5/26
9.0.0-beta01 1 2025/5/26
8.0.4 1 2025/5/26
8.0.3 1 2025/5/26
8.0.2 1 2025/5/26
8.0.1 1 2025/5/26
8.0.1-beta2 1 2025/5/26
8.0.1-beta 1 2025/5/26
8.0.0 1 2025/5/27
7.2.0 1 2025/5/26
7.1.11-beta 2 2025/4/17
7.1.10 1 2025/5/26
7.1.9 1 2025/5/26
7.1.8 1 2025/5/26
7.1.7 1 2025/5/26
7.1.5 1 2025/5/26
7.1.4 1 2025/5/26
7.1.3 1 2025/5/26
7.1.2 1 2025/5/26
7.1.1 1 2025/5/27
7.1.0 1 2025/5/26
7.0.8-beta 1 2025/5/26
7.0.7 1 2025/5/26
7.0.6 1 2025/5/26
7.0.5 1 2025/5/27
7.0.4 1 2025/5/26
7.0.3 1 2025/5/26
7.0.2 1 2025/5/26
7.0.1 1 2025/5/26
7.0.0 1 2025/5/26
0.0.1 1 2025/5/27