Pelindo.HtmlToPdf.Core
0.0.0.3
Generate Html to PDF Using WkhtmlToPdf Engine, work in Windows OS And Linux OS. Dynamic Path and Easy to use...
Install-Package Pelindo.HtmlToPdf.Core -Version 0.0.0.3
dotnet add package Pelindo.HtmlToPdf.Core --version 0.0.0.3
<PackageReference Include="Pelindo.HtmlToPdf.Core" Version="0.0.0.3" />
paket add Pelindo.HtmlToPdf.Core --version 0.0.0.3
#r "nuget: Pelindo.HtmlToPdf.Core, 0.0.0.3"
Pelindo.HtmlToPdf.Core
Docs are in the making. Should work almost exactly as wkhtmltopdf.exe. Default is "". Download at https://wkhtmltopdf.org/downloads.html
Development version
This is the firt version of Pelindo.HtmlToPdf.Core for Asp.Net Core.
Install with nuget.org:
https://www.nuget.org/packages/Pelindo.HtmlToPdf.Core
Needs configuration
Basic configuration done in Startup.cs:
PelindoHtmlToPdfCore.Setup(env);
Make sure you have a folder with the wkhtmltopdf.exe file accessible by the process running the web app. By default it searches in a folder named "wkhtmltox", If Windos OS use Extension ".exe" And If use Linux OS use Extension "" in the root of the web app. If you need to change that use the optional parameter to the Setup call PelindoHtmlToPdfCore.Setup(env,
"path/relative/to/root",
"extensionFile")
;
If Windows OS Example :
PelindoHtmlToPdfCore.Setup(_hostingEnv.WebRootPath)
;
Note : Copy File "wkhtmltopdf.exe" and "wkhtmltoimage.exe" to "wwwroot" using folder "wkhtmltox". Result path "wwwroot/wkhtmltox/wkhtmltopdf.exe"
If Linux OS Example :
PelindoHtmlToPdfCore.Setup(
"/usr/local",
"bin",
"")
;
Note : Install wkhtmltopdf in your system default path "/user/local/bin/wkhtmltopdf" and "/user/local/bin/wkhtmltoimage"
Pelindo.HtmlToPdf.Core
Docs are in the making. Should work almost exactly as wkhtmltopdf.exe. Default is "". Download at https://wkhtmltopdf.org/downloads.html
Development version
This is the firt version of Pelindo.HtmlToPdf.Core for Asp.Net Core.
Install with nuget.org:
https://www.nuget.org/packages/Pelindo.HtmlToPdf.Core
Needs configuration
Basic configuration done in Startup.cs:
PelindoHtmlToPdfCore.Setup(env);
Make sure you have a folder with the wkhtmltopdf.exe file accessible by the process running the web app. By default it searches in a folder named "wkhtmltox", If Windos OS use Extension ".exe" And If use Linux OS use Extension "" in the root of the web app. If you need to change that use the optional parameter to the Setup call PelindoHtmlToPdfCore.Setup(env,
"path/relative/to/root",
"extensionFile")
;
If Windows OS Example :
PelindoHtmlToPdfCore.Setup(_hostingEnv.WebRootPath)
;
Note : Copy File "wkhtmltopdf.exe" and "wkhtmltoimage.exe" to "wwwroot" using folder "wkhtmltox". Result path "wwwroot/wkhtmltox/wkhtmltopdf.exe"
If Linux OS Example :
PelindoHtmlToPdfCore.Setup(
"/usr/local",
"bin",
"")
;
Note : Install wkhtmltopdf in your system default path "/user/local/bin/wkhtmltopdf" and "/user/local/bin/wkhtmltoimage"
Dependencies
-
.NETCoreApp 2.0
- Microsoft.AspNetCore.Mvc (>= 2.0.4)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.