webenology.blazor.components
2.0.20
dotnet add package webenology.blazor.components --version 2.0.20
NuGet\Install-Package webenology.blazor.components -Version 2.0.20
<PackageReference Include="webenology.blazor.components" Version="2.0.20" />
paket add webenology.blazor.components --version 2.0.20
#r "nuget: webenology.blazor.components, 2.0.20"
// Install webenology.blazor.components as a Cake Addin
#addin nuget:?package=webenology.blazor.components&version=2.0.20
// Install webenology.blazor.components as a Cake Tool
#tool nuget:?package=webenology.blazor.components&version=2.0.20
webenology.blazor.components
Blazor Component Library
Nuget package: https://www.nuget.org/packages/webenology.blazor.components/
How to Use Generate PDF From Blazor Component
In Startup make sure to add in
services.AddWebenologyHelpers();
On Your component make sure to inject the blazor pdf class
[Inject]
private IBlazorPdf blazorPdf {get;set;}
Then to get the pdf in base64 you will call the following, we are generating the Counter component
The Counter paramaers are added in by x.Add(y=> y.Param, value)
The Css and Js file locations are absolute locations
var fileName = "my file name";
var cssFileLocations = new List<string>();
var jsFileLocations = new List<string>();
_base64Results = blazorPdf.GetBlazorInPdfBase64<Counter>(x => x.Add(y=> y.StartingValue, 2), fileName, cssFileLocations, jsFileLocations);
You can render the results however you want. An easy way to render them is to set the base64 into an embed component
<embed style="width: 100%; height: 650px;" src="data:application/pdf;base64,@_base64Results">
Product | Versions |
---|---|
.NET | net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
-
net6.0
- bunit.web (>= 1.3.42)
- DocumentFormat.OpenXml (>= 2.15.0)
- FreeSpire.Doc (>= 9.9.7)
- HtmlAgilityPack (>= 1.11.39)
- Microsoft.AspNetCore.Components.Web (>= 6.0.1)
- PuppeteerSharp (>= 6.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.20 | 144 | 3/7/2023 |
2.0.18 | 598 | 11/18/2022 |
2.0.17 | 779 | 11/2/2022 |
2.0.16 | 298 | 10/25/2022 |
2.0.15 | 695 | 5/20/2022 |
2.0.14 | 547 | 5/19/2022 |
2.0.13 | 571 | 5/11/2022 |
2.0.12 | 533 | 5/11/2022 |
2.0.11 | 510 | 5/10/2022 |
2.0.10 | 576 | 4/26/2022 |
2.0.9 | 601 | 4/20/2022 |
2.0.8 | 635 | 2/10/2022 |
2.0.7 | 572 | 2/3/2022 |
2.0.6 | 585 | 1/21/2022 |
2.0.5 | 382 | 1/12/2022 |
2.0.4 | 226 | 1/5/2022 |
2.0.2 | 230 | 12/25/2021 |
2.0.1 | 1,139 | 12/14/2021 |
2.0.0 | 200 | 12/14/2021 |
1.4.6 | 206 | 12/7/2021 |
1.4.5 | 196 | 12/7/2021 |
1.4.4 | 229 | 11/9/2021 |
1.4.3 | 248 | 11/8/2021 |
1.4.2 | 329 | 11/5/2021 |
1.3.2 | 456 | 9/29/2021 |
1.3.1 | 273 | 9/5/2021 |
1.2.3 | 244 | 9/3/2021 |
1.2.2 | 239 | 8/16/2021 |
1.2.1 | 251 | 8/9/2021 |
1.2.0 | 266 | 8/2/2021 |
1.1.22 | 279 | 7/23/2021 |
1.1.21 | 288 | 7/22/2021 |
1.1.20 | 260 | 7/21/2021 |
1.1.19 | 246 | 7/13/2021 |
1.1.18 | 291 | 6/9/2021 |
1.1.17 | 372 | 6/6/2021 |
1.1.16 | 273 | 4/21/2021 |
1.1.14 | 304 | 3/11/2021 |
1.1.13 | 276 | 2/17/2021 |
1.1.12 | 274 | 2/15/2021 |
1.1.10 | 283 | 2/11/2021 |
1.1.9 | 283 | 2/2/2021 |
1.1.8 | 257 | 2/2/2021 |
1.1.7 | 347 | 1/17/2021 |
1.1.6 | 271 | 1/16/2021 |
1.1.5 | 278 | 1/15/2021 |
1.1.4 | 281 | 1/14/2021 |
1.1.3 | 312 | 1/14/2021 |
1.1.2 | 284 | 1/13/2021 |
1.1.1 | 352 | 1/10/2021 |
1.1.0 | 352 | 1/8/2021 |
1.0.16 | 311 | 1/6/2021 |
1.0.15 | 319 | 1/5/2021 |
1.0.14 | 329 | 1/2/2021 |
1.0.13 | 284 | 12/29/2020 |
1.0.12 | 321 | 12/29/2020 |
1.0.11 | 280 | 12/29/2020 |
1.0.10 | 374 | 12/26/2020 |
1.0.9 | 373 | 12/26/2020 |
1.0.7 | 383 | 12/26/2020 |
1.0.6 | 401 | 12/26/2020 |
1.0.5 | 311 | 12/26/2020 |
Fix memory leak with combobox and iblazorpdf