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.
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.
// Install Html2Pdf as a Cake Addin
#addin nuget:?package=Html2Pdf&version=1.0.6

// Install Html2Pdf as a Cake Tool
#tool nuget:?package=Html2Pdf&version=1.0.6

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 4,496 6/11/2020