BootstrapBlazor.PdfReader
7.0.7
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BootstrapBlazor.PdfReader --version 7.0.7
NuGet\Install-Package BootstrapBlazor.PdfReader -Version 7.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BootstrapBlazor.PdfReader" Version="7.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.PdfReader --version 7.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BootstrapBlazor.PdfReader, 7.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BootstrapBlazor.PdfReader as a Cake Addin #addin nuget:?package=BootstrapBlazor.PdfReader&version=7.0.7 // Install BootstrapBlazor.PdfReader as a Cake Tool #tool nuget:?package=BootstrapBlazor.PdfReader&version=7.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Blazor Pdf Reader PDF阅读器 组件
示例:
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"/>
<pre>跨域最佳体验</pre>
<PdfReader UrlBase="https://blazor.app1.es/"
PdfFile="_content/DemoShared/sample.pdf"
EnableStreamingMode="true"
ForcePDFJS="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 专有
优先嵌入模式,不支持则回落倒pdf.js模式
跨域最佳体验: EnableStreamingMode=true , ForcePDFJS=true
Blazor 组件
AlexChow
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.0)
-
net7.0
- Microsoft.AspNetCore.Components.Web (>= 7.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on BootstrapBlazor.PdfReader:
Package | Downloads |
---|---|
BlazorShared
BlazorMaui , 整合Blazor,BootstrapBlazor UI组件库,Maui的共享跨平台工程示例共享库 |
|
BootstrapBlazor.Densen.All
Blazor 组件懒人包 |
|
BootstrapBlazor.Shared
Package Description |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on BootstrapBlazor.PdfReader:
Repository | Stars |
---|---|
dotnetcore/BootstrapBlazor
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
|
|
LANCommander/LANCommander
|
|
densen2014/BlazorMaui
用 c # 和 Razor 创建本机移动应用和桌面应用。使用 Blazor.BB.Maui,可以快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS 的应用。
|
|
densen2014/BlazorHybrid
关于BlazorHybrid的一切研究. 用 c # 和 Razor 创建本机移动应用和桌面应用。快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS、Linux 的应用。
|
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 347 | 11/13/2024 |
9.0.0-beta02 | 86 | 11/7/2024 |
9.0.0-beta01 | 133 | 11/1/2024 |
8.0.4 | 8,046 | 4/18/2024 |
8.0.3 | 1,291 | 1/24/2024 |
8.0.2 | 1,450 | 12/9/2023 |
8.0.1 | 381 | 12/5/2023 |
8.0.1-beta2 | 105 | 12/5/2023 |
8.0.1-beta | 124 | 12/5/2023 |
8.0.0 | 651 | 11/15/2023 |
7.2.0 | 2,773 | 8/22/2023 |
7.1.11-beta | 104 | 8/22/2023 |
7.1.10 | 3,649 | 3/18/2023 |
7.1.9 | 299 | 3/18/2023 |
7.1.8 | 1,732 | 1/26/2023 |
7.1.7 | 432 | 1/25/2023 |
7.1.5 | 303 | 1/24/2023 |
7.1.4 | 831 | 12/26/2022 |
7.1.3 | 292 | 12/26/2022 |
7.1.2 | 580 | 12/18/2022 |
7.1.1 | 307 | 12/18/2022 |
7.1.0 | 312 | 12/18/2022 |
7.0.8-beta | 127 | 12/16/2022 |
7.0.7 | 442 | 12/14/2022 |
7.0.6 | 465 | 12/7/2022 |
7.0.5 | 318 | 12/7/2022 |
7.0.4 | 312 | 12/7/2022 |
7.0.3 | 453 | 12/7/2022 |
7.0.2 | 398 | 12/7/2022 |
7.0.1 | 301 | 12/6/2022 |
7.0.0 | 319 | 12/6/2022 |
0.0.1 | 335 | 12/6/2022 |