Caracan.Pdf is a .NET Core library for generating beautiful PDF documents from Html.
Use the nuget manager to install libraries.
Install-Package Caracan.Pdf -version 1.0.0
Install-Package Caracan.Templates -version 1.0.0
Install-Package Caracan.Charts -version 1.0.0
In Startup.cs
services.AddPdfGenerator(Configuration);
In appsettings.json
"PdfGeneratorOptions":{
"Connection":"127.0.0.1:9222"
}
In your service, use dependency injection
public YourService(IPdfGenerator pdfGenerator){
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.