BootstrapBlazor.Html2Pdf
10.0.1
Prefix Reserved
dotnet add package BootstrapBlazor.Html2Pdf --version 10.0.1
NuGet\Install-Package BootstrapBlazor.Html2Pdf -Version 10.0.1
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.Html2Pdf" Version="10.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BootstrapBlazor.Html2Pdf" Version="10.0.1" />
<PackageReference Include="BootstrapBlazor.Html2Pdf" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BootstrapBlazor.Html2Pdf --version 10.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BootstrapBlazor.Html2Pdf, 10.0.1"
#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.
#:package BootstrapBlazor.Html2Pdf@10.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BootstrapBlazor.Html2Pdf&version=10.0.1
#tool nuget:?package=BootstrapBlazor.Html2Pdf&version=10.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bootstrap Blazor Component
A set of enterprise-class UI components based on Bootstrap and Blazor.
Features
- Enterprise-class UI designed for web applications.
- A set of high-quality Blazor components out of the box.
- Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
- Supports Progressive Web Applications (PWA).
- Build with C#, a multi-paradigm static language for an efficient development experience.
- .NET 6.0, with direct reference to the rich .NET ecosystem.
- Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.
Online Examples
Installation Guide
- Install .net core sdk Official website
- Install Visual Studio lastest Official website
git clone https://github.com/dotnetcore/BootstrapBlazor.git
cd BootstrapBlazor/src/BootstrapBlazor.Server
dotnet run
Quick Installation Guide
Install Package
dotnet add package BootstrapBlazor
Add the following to _Imports.razor
@using BootstrapBlazor.Components
Add the following to the MainLayout.razor
<BootstrapBlazorRoot>
@Body
</BootstrapBlazorRoot>
Add the following to your HTML head section
it's either index.html or _Layout.cshtml/_Host.cshtml/App.razor depending on whether you're running WebAssembly or Server
<link rel="stylesheet" href="_content/BootstrapBlazor/css/bootstrap.blazor.bundle.min.css" />
Add the following script at the end of the body
<script src="_content/BootstrapBlazor/js/bootstrap.blazor.bundle.min.js"></script>
Add the following to the relevant sections of Program.cs
builder.Services.AddBootstrapBlazor();
Usage
<Display Value="@_text"></Display>
<Button Text="Button" OnClick="@ClickButton"></Button>
@code {
private string? _text;
private void ClickButton(MouseEventArgs e)
{
_text = DateTime.Now.ToString();
}
}
Install CLI Template
- Install the template
dotnet new install Bootstrap.Blazor.Templates::*
- Create the Boilerplate project with the template
dotnet new bbapp
| 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- BootstrapBlazor (>= 10.0.0)
- PuppeteerSharp (>= 20.2.5)
-
net6.0
- BootstrapBlazor (>= 10.0.0)
- PuppeteerSharp (>= 20.2.5)
-
net7.0
- BootstrapBlazor (>= 10.0.0)
- PuppeteerSharp (>= 20.2.5)
-
net8.0
- BootstrapBlazor (>= 10.0.0)
- PuppeteerSharp (>= 20.2.5)
-
net9.0
- BootstrapBlazor (>= 10.0.0)
- PuppeteerSharp (>= 20.2.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on BootstrapBlazor.Html2Pdf:
| Package | Downloads |
|---|---|
|
BootstrapBlazor.Shared
Package Description |
|
|
Saturn.Infra.WebView
Saturn基础库类 |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on BootstrapBlazor.Html2Pdf:
| Repository | Stars |
|---|---|
|
dotnetcore/BootstrapBlazor
Bootstrap Blazor is an enterprise-level UI component library based on Bootstrap and Blazor.
|
|
|
densen2014/Blazor100
Blazor入门100天
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.1 | 512 | 12/10/2025 |
| 10.0.0 | 612 | 11/12/2025 |
| 10.0.0-rc.2.2.0 | 144 | 10/31/2025 |
| 10.0.0-rc.2.1.2 | 158 | 10/30/2025 |
| 9.0.6 | 646 | 10/31/2025 |
| 9.0.6-beta02 | 181 | 10/30/2025 |
| 9.0.6-beta01 | 235 | 10/27/2025 |
| 9.0.5 | 720 | 10/27/2025 |
| 9.0.4 | 833 | 10/11/2025 |
| 9.0.3 | 2,225 | 7/18/2025 |
| 9.0.2 | 4,397 | 2/5/2025 |
| 9.0.1 | 2,612 | 12/26/2024 |
| 9.0.0 | 1,599 | 11/13/2024 |
| 9.0.0-beta02 | 123 | 11/7/2024 |
| 9.0.0-beta01 | 463 | 11/1/2024 |
| 8.3.0 | 807 | 10/16/2024 |
| 8.2.1 | 349 | 10/11/2024 |
| 8.2.0 | 1,234 | 8/21/2024 |
| 8.1.1 | 1,687 | 6/28/2024 |
| 8.1.0 | 956 | 5/4/2024 |
| 8.1.0-beta02 | 172 | 5/1/2024 |
| 8.1.0-beta01 | 126 | 5/1/2024 |
| 8.0.2 | 1,951 | 12/16/2023 |
| 8.0.2-beta01 | 319 | 12/11/2023 |
| 8.0.1 | 248 | 12/10/2023 |
| 8.0.0 | 606 | 11/15/2023 |
| 7.2.0 | 1,803 | 7/27/2023 |
| 7.1.0 | 341 | 7/24/2023 |
| 7.0.0 | 1,105 | 6/30/2023 |