PDFMaker-HashMakerSol
1.0.3
See the version list below for details.
dotnet add package PDFMaker-HashMakerSol --version 1.0.3
NuGet\Install-Package PDFMaker-HashMakerSol -Version 1.0.3
<PackageReference Include="PDFMaker-HashMakerSol" Version="1.0.3" />
paket add PDFMaker-HashMakerSol --version 1.0.3
#r "nuget: PDFMaker-HashMakerSol, 1.0.3"
// Install PDFMaker-HashMakerSol as a Cake Addin #addin nuget:?package=PDFMaker-HashMakerSol&version=1.0.3 // Install PDFMaker-HashMakerSol as a Cake Tool #tool nuget:?package=PDFMaker-HashMakerSol&version=1.0.3
This Package Contains a light weight PDFMaker which is faster than others in market and hastle free. Others have issues with most of the hosting where those sites doesn't allow them to run.
Source Code: https://github.com/zainniazi/pdfmaker-hashmakersol
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- iTextSharp (>= 5.5.9)
- itextsharp.xmlworker (>= 5.5.9)
- Microsoft.AspNet.Mvc (>= 5.2.3)
- Microsoft.AspNet.Razor (>= 3.2.3)
- Microsoft.AspNet.WebPages (>= 3.2.3)
- Microsoft.Web.Infrastructure (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
You can make PDF by simply returning return new PdfResult() in ASP.NET MVC which will show a PDF in the browser or you can use PdfBytes class to get html converted to bytes of pdf.
There are multiple overloads available for you to select an data object or a action other than your current one.
Moreover you can pass parameters to specify master layout if any, document size, File Download Name.
Example:
using HashMakerSol.PDFMaker;
return new PdfResult( * Centers) {
** MasterViewName = "_PDFLayout",
*** DocPageSize = PageSize.A4.Rotate()
};
PdfBytes pdfBytes = new PdfBytes() {
*** DocPageSize = PageSize.A4
};
pdfBytes.GetPdfBytesArray("<h1>Hello</h1>");
* Centers : Is your Object of data.
** MasterViewName : Layout of your Action.
*** DocPageSize : This is to specify size and orientation both. Chose a size and at end call rotate for Landscape or Leave as it is for Horizontal.