Rotativa.Mini 1.0.0

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

// Install Rotativa.Mini as a Cake Tool
#tool nuget:?package=Rotativa.Mini&version=1.0.0                

Rotativa.Mini

v1.0

Rotativa.Mini is an extracted minified version of Rotativa library. It helps you to build pdf file out of HTML string in any .NET platform and makes implementation simpler.

https://github.com/webgio/Rotativa

How to use?

  1. Take the output dll file (Rotativa.Mini.dll) and add referance in your project.
  2. Add Wkhtmltopdf.exe File into your project (you can see inside demo project)
           var rotativaPath = @"C:\Users\siraj\source\repos\Rotativa.Mini\Rotativa.Mini.Demo\Rotativa";
            var style = @"C:\Users\siraj\source\repos\Rotativa.Mini\Rotativa.Mini.Demo\Stylesheet1.css";

            var fileHtml = File.ReadAllText(@"C:\Users\siraj\source\repos\Rotativa.Mini\Rotativa.Mini.Demo\dddd.html");

            var options =
              new RotativaMiniOptions()
               .SetWindowStatusIdentifier("ready_to_print")
               .SetCopies(2)
               .SetPageSize(Size.A4)
               .SetStyleSheet(style)
               .SetFooter(@"C:\Users\siraj\source\repos\Rotativa.Mini\Rotativa.Mini.Demo\ddFooter.html")
               .SetPageMargins(1, 1, 5, 1);

            var pdfData = RotativaMiniConverter.ConvertHtml(rotativaPath, options, fileHtml);

            File.WriteAllBytes("Test.pdf", pdfData);

You can little work arround to support all the path as relative path

There are no supported framework assets in this 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.2 1,150 2/10/2019
1.0.1 613 2/10/2019
1.0.0 626 2/10/2019