Skip to content
Generating a PDF file using a node plugin from ASP.NET Core.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
Controllers
Node
.dockerignore
.gitignore
Dockerfile
LICENSE
PdfGenerationNodeServicesSample.csproj
Program.cs
README.md
Startup.cs
global.json

README.md

ASP.NET Core PDF Generation using Node Services

Generating a PDF file using a node plugin from ASP.NET Core.

Screenshot

Run the sample using Docker

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}.

Run the sample manually

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.

You can’t perform that action at this time.