BootstrapBlazor.PdfReader 7.1.7

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package BootstrapBlazor.PdfReader --version 7.1.7                
NuGet\Install-Package BootstrapBlazor.PdfReader -Version 7.1.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.1.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.PdfReader --version 7.1.7                
#r "nuget: BootstrapBlazor.PdfReader, 7.1.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.1.7

// Install BootstrapBlazor.PdfReader as a Cake Tool
#tool nuget:?package=BootstrapBlazor.PdfReader&version=7.1.7                

Blazor Pdf Reader PDF阅读器 组件

QQ截图20221218143438

示例:

https://www.blazor.zone/PdfReaders

https://blazor.app1.es/pdfReaders

使用方法:

1.nuget包

BootstrapBlazor.PdfReader

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

@using BootstrapBlazor.Components

3.razor页面

<PdfReader FileName="pdf/sample.pdf" />
           
<PdfReader FileName="https://blazor.app1.es/_content/DemoShared/sample.pdf" />

<pre>流化方式,可跨域</pre>
<PdfReader FileName="https://densen.es/test/webdev/pdf/sample.pdf" 
           StreamMode="true"/> 

4.参数说明

参数 说明 默认值 旧版名称
FileName PDF文件路径(Url或相对路径) null Filename
StreamMode 使用流化模式,可跨域读取文件 false EnableStreamingMode
Width 宽 单位(px/%) 100%
Height 高 单位(px/%) 500px
StyleString 组件外观 Css Style
Page 页码 1
Pagemode 页面模式, EnumPageMode 类型 Thumbs
Zoom 缩放模式, EnumZoomMode 类型 Auto
Search 查询字符串
Refresh() 刷新组件
NavigateToPage(int page) 跳转页码
Refresh(int page) 跳转页码
Refresh(string? search, int? page, EnumPageMode? pagemode, EnumZoomMode? zoom) 刷新组件(查询关键字,页码,页面模式,缩放模式)
Stream 用于渲染的文件流,为空则用URL参数读取文件 PdfStream
ViewerBase 浏览器页面路径 内置 PDFJS_URL
Navpanes 显示导航窗格 true
Toolbar 显示工具栏 true
Statusbar 显示状态栏 true
Debug 显示调试信息
AutoStreamMode 'http' 开头自动使用流模式读取 true
CompatibilityMode 兼容模式,兼容旧版浏览器 false

更新历史

v7.1.6

  • 添加 CompatibilityMode : 兼容模式,兼容旧版浏览器

v7.1.5

  • 添加 AutoStreamMode: 'http' 开头自动使用流模式读取
  • 添加 Watermark : 水印内容

v7.1.4

  • Filename 更改为 FileName

v7.1.3

  • 移除pdfobject, 一些参数也被移除,请注意更改

  • 移除参数
    UrlBase
    View

v7.1

  • 移除pdfobject, 一些参数也被移除,请注意更改

  • 移除参数
    Func<string, Task>? OnInfo
    Func<string, Task>? OnError
    ForceIframe
    ForcePDFJS
    UrlBase
    View

Blazor 组件

条码扫描 ZXingBlazor nuget stats

图片浏览器 Viewer

条码扫描 BarcodeScanner

手写签名 Handwritten

手写签名 SignaturePad

定位/持续定位 Geolocation

屏幕键盘 OnScreenKeyboard

百度地图 BaiduMap

谷歌地图 GoogleMap

蓝牙和打印 Bluetooth

PDF阅读器 PdfReader

文件系统访问 FileSystem

光学字符识别 OCR

电池信息/网络信息 WebAPI

视频播放器 VideoPlayer

AlexChow

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

Product 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.

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 (3)

Showing the top 3 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 的应用。
Version Downloads Last updated
9.0.0-beta02 60 11/7/2024
9.0.0-beta01 121 11/1/2024
8.0.4 7,172 4/18/2024
8.0.3 1,265 1/24/2024
8.0.2 1,444 12/9/2023
8.0.1 380 12/5/2023
8.0.1-beta2 104 12/5/2023
8.0.1-beta 123 12/5/2023
8.0.0 634 11/15/2023
7.2.0 2,672 8/22/2023
7.1.11-beta 103 8/22/2023
7.1.10 3,640 3/18/2023
7.1.9 298 3/18/2023
7.1.8 1,712 1/26/2023
7.1.7 431 1/25/2023
7.1.5 302 1/24/2023
7.1.4 829 12/26/2022
7.1.3 291 12/26/2022
7.1.2 579 12/18/2022
7.1.1 306 12/18/2022
7.1.0 311 12/18/2022
7.0.8-beta 126 12/16/2022
7.0.7 441 12/14/2022
7.0.6 464 12/7/2022
7.0.5 315 12/7/2022
7.0.4 311 12/7/2022
7.0.3 452 12/7/2022
7.0.2 397 12/7/2022
7.0.1 298 12/6/2022
7.0.0 315 12/6/2022
0.0.1 334 12/6/2022