WkHtmlTo.Wrapper.AspNetCore 1.0.0

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

// Install WkHtmlTo.Wrapper.AspNetCore as a Cake Tool
#tool nuget:?package=WkHtmlTo.Wrapper.AspNetCore&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 netcoreapp3.1 is compatible. 
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 128 5/13/2024