WkHtmlTo.Wrapper.BlazorServer
1.0.0
dotnet add package WkHtmlTo.Wrapper.BlazorServer --version 1.0.0
NuGet\Install-Package WkHtmlTo.Wrapper.BlazorServer -Version 1.0.0
<PackageReference Include="WkHtmlTo.Wrapper.BlazorServer" Version="1.0.0" />
paket add WkHtmlTo.Wrapper.BlazorServer --version 1.0.0
#r "nuget: WkHtmlTo.Wrapper.BlazorServer, 1.0.0"
// Install WkHtmlTo.Wrapper.BlazorServer as a Cake Addin #addin nuget:?package=WkHtmlTo.Wrapper.BlazorServer&version=1.0.0 // Install WkHtmlTo.Wrapper.BlazorServer as a Cake Tool #tool nuget:?package=WkHtmlTo.Wrapper.BlazorServer&version=1.0.0
WkHtmlToWrapper
Yes! This is ANOTHER wrapper for the incredible and archived wkhtmltopdf.
Why have you done this?
Well, because it was fun to.
I've used Rotativa.AspNetCore library many times since started with AspNet and I found it useful and works fine most of the time, and under the roof it uses wkhtmltopdf.
Although I like Rotativa I feel that it misses many wkhtmltopdf configurations when using it with the default Rotativa's classes,
and it was also coupled directly to MVC, so I've decided to create a brand new wrapper that enables you to easily
use wkhtmltopdf
inside and outside of an AspNet project.
Additionaly, it was added many other informations and parameters/arguments that are nice but hidden at Rotativa's API.
Will keep maintaining this repo?
Partially. I have no intention of maintaining with all my will something that is clearly deprecated. But until it dies completely I'll try to keep up with the repo.
There are many others awesome PDF generators that you might consider. Such as WeasyPrint that is a more modern and maintainable library.
But if you still stick with this, feel free to use.
NuGet
# Wrapper library
dotnet add package WkHtmlTo.Wrapper
# AspNetCore MVC
dotnet add package WkHtmlTo.Wrapper.AspNetCore
# Blazor server
dotnet add package WkHtmlTo.Wrapper.BlazorServer
How to use?
The heart of the library is the Wrapper, so everything ends up on him and you can use it anywhere you want. However there are some abstractions created for Razor and Blazor server components .
AspNetCore abstraction
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- WkHtmlTo.Wrapper (>= 1.0.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 |
---|---|---|
1.0.0 | 119 | 5/13/2024 |
See release notes at: https://github.com/Rickedb/wkhtmltowrapper/releases