AdvancedHTMLToPdfConverter 1.0.25

There is a newer version of this package available.
See the version list below for details.
dotnet add package AdvancedHTMLToPdfConverter --version 1.0.25
NuGet\Install-Package AdvancedHTMLToPdfConverter -Version 1.0.25
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="AdvancedHTMLToPdfConverter" Version="1.0.25" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AdvancedHTMLToPdfConverter --version 1.0.25
#r "nuget: AdvancedHTMLToPdfConverter, 1.0.25"
#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 AdvancedHTMLToPdfConverter as a Cake Addin
#addin nuget:?package=AdvancedHTMLToPdfConverter&version=1.0.25

// Install AdvancedHTMLToPdfConverter as a Cake Tool
#tool nuget:?package=AdvancedHTMLToPdfConverter&version=1.0.25

The AdvancedHTMLToPDF is tool which permits one to create a pdf from html string content. It produces a pdf like rendered with pdf engine (as like html template provided).

Technology involved:

  1. WkhtmlToPdf a command line tool used to convert html to pdf
  2. C# wrapper class built around above tool to handle multiple requests simultaneously with boosted performance.
  3. Supports .net core and .net standard applications.

Features:

  1. Simple to use.
  2. Capable of handling large number of requests simultaneously.
  3. Creates Table of Contents with deep linking functionality enabled.
  4. Adds deep linking from each page to index page.
  5. Configurable background image for TOC.
  6. Enables clicks on external links from pdf page.
  7. Display TOC with grouping by category enable and which is configurable.

How to use: //To set configs for index and pdf pages AdvancedHTMLToPdfConverter.PdfGeneratorSettings config = new AdvancedHTMLToPdfConverter.PdfGeneratorSettings();

        config.HtmlContent = htmlContentList.ToArray(); //Html contents 
        config.TOCHeading = "Table of Contents Heading";
        config.IndexGroupingParams = marketUnits; //optional to group TOC by given category
        config.IndexBackgroundImage = img //optional to set background image for index page
       var pdfInBytes= AdvancedHTMLToPdfConverter.AdvancedHTMLToPdfConverter.ConvertToPDFAdvanced(config);
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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
2.0.0 786 8/17/2022
1.0.26 970 2/5/2022
1.0.25 850 2/4/2022