Pdf generator service with PuppeteerSharp
Hi! Welcome to the example of generating PDFs using PuppeteerSharp.
Small overview scheme
How to build and run
- Firstly, you should open NodeApp folder and build bundle.js. This bundle is used like template for a report, which will be filled with a data from ReportDto.
cd src/MccSoft.PdfGenerator.NodeApp npm install npm run build
For development mode, use
npm run start script. It'll be started in browser with HTR.
Then open .NET solution from repo's root folder and build it.
To get some generated pdf as result, you can use VSCode with installed HttpClient extension.
Open in VSCode
client.httpfile from the repo's root folder.
After success response, you can click button
Save requst bodyand just save it in PDF.
Open saved PDF in some PDF viewer (e.g. Google Chrome).