Generating a PDF file using a node plugin from ASP.NET Core.
Requires: Docker
docker build -t aspnetpdf .
docker run -d -p 8080:80 aspnetpdf
Now browse to localhost:8080
.
You may stop the container using docker stop {imageid}
.
Requires: .NET Core SDK 2.1.4
, node
/ npm
.
npm install html-pdf --save
dotnet run
Now browse to localhost:5000
.
The generated PDF's HTML source is borrowed from the marcbachmann/node-html-pdf
repo.