webenology.blazor.components
2.3.0
dotnet add package webenology.blazor.components --version 2.3.0
NuGet\Install-Package webenology.blazor.components -Version 2.3.0
<PackageReference Include="webenology.blazor.components" Version="2.3.0" />
<PackageVersion Include="webenology.blazor.components" Version="2.3.0" />
<PackageReference Include="webenology.blazor.components" />
paket add webenology.blazor.components --version 2.3.0
#r "nuget: webenology.blazor.components, 2.3.0"
#:package webenology.blazor.components@2.3.0
#addin nuget:?package=webenology.blazor.components&version=2.3.0
#tool nuget:?package=webenology.blazor.components&version=2.3.0
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 Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. 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 was computed. 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. |
-
net7.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)
- System.IdentityModel.Tokens.Jwt (>= 7.1.0-preview)
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.3.0 | 1,880 | 10/15/2023 |
| 2.2.5 | 415 | 9/19/2023 |
| 2.2.3 | 493 | 8/25/2023 |
| 2.2.0 | 413 | 8/22/2023 |
| 2.1.7 | 454 | 8/22/2023 |
| 2.1.6 | 665 | 7/5/2023 |
| 2.1.5 | 421 | 6/27/2023 |
| 2.1.3 | 466 | 5/22/2023 |
| 2.1.2 | 481 | 5/17/2023 |
| 2.1.1 | 440 | 5/17/2023 |
| 2.0.21 | 461 | 5/11/2023 |
| 2.0.20 | 706 | 3/7/2023 |
| 2.0.18 | 6,599 | 11/18/2022 |
| 2.0.17 | 4,635 | 11/2/2022 |
| 2.0.16 | 906 | 10/25/2022 |
Added in new auto complete feature for maps with HERE maps