Html2Pdf 1.0.6

dotnet add package Html2Pdf --version 1.0.6
                    
NuGet\Install-Package Html2Pdf -Version 1.0.6
                    
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="Html2Pdf" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Html2Pdf" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="Html2Pdf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Html2Pdf --version 1.0.6
                    
#r "nuget: Html2Pdf, 1.0.6"
                    
#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.
#:package Html2Pdf@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Html2Pdf&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=Html2Pdf&version=1.0.6
                    
Install as a Cake Tool

This package is free to generate PDF from HTML content or file within a few lines of code. It supports Javascript and inline CSS and gives an output of pdf file in Byte[]

It is a C# wrapper that uses an opensource project called wkhtmltopdf. It has simple and easy to understand methods.

Example:-

        Html2Pdf pdf = new Html2Pdf();

        pdf.Size = PageSize.A4;
        pdf.Orientation = PageOrientation.Landscape;

        pdf.Header.CenterText = "hi";
        pdf.Footer.RightText = "[page]";

       var bytes = pdf.GeneratePDF("<h1>hi</hi> ", "<h1>hi</hi>");

for more details:- https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.6 6,787 6/11/2020