Rotativa.Mini 1.0.0

This is class library build top of wkhtmltopdf.exe driver. Build HTML string to pdf by rendering advance javascript and stylesheets

There is a newer version of this package available.
See the version list below for details.
Install-Package Rotativa.Mini -Version 1.0.0
dotnet add package Rotativa.Mini --version 1.0.0
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

Here's link for rotativa

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

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.

Here's link for rotativa

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

Dependencies

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 History

Version Downloads Last updated
1.0.2 464 2/10/2019
1.0.1 235 2/10/2019
1.0.0 228 2/10/2019