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                
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="WkHtmlTo.Wrapper.BlazorServer" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WkHtmlTo.Wrapper.BlazorServer --version 1.0.0                
#r "nuget: WkHtmlTo.Wrapper.BlazorServer, 1.0.0"                
#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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 113 5/13/2024