WkHtmlTo.Wrapper 1.0.0

dotnet add package WkHtmlTo.Wrapper --version 1.0.0
NuGet\Install-Package WkHtmlTo.Wrapper -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" 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 --version 1.0.0
#r "nuget: WkHtmlTo.Wrapper, 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 as a Cake Addin
#addin nuget:?package=WkHtmlTo.Wrapper&version=1.0.0

// Install WkHtmlTo.Wrapper as a Cake Tool
#tool nuget:?package=WkHtmlTo.Wrapper&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 net5.0 is compatible.  net5.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on WkHtmlTo.Wrapper:

Package Downloads
WkHtmlTo.Wrapper.AspNetCore

AspNetCore abstraction for WkHtmlTo.Wrapper

WkHtmlTo.Wrapper.BlazorServer

AspNetCore abstraction for WkHtmlTo.Wrapper

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 104 5/13/2024